Xand? Bitwise & Operation

Blitz3D Forums/Blitz3D Beginners Area/Xand? Bitwise & Operation

_PJ_(Posted 2009) [#1]
How can I check for a Bitwise 'And' operation between two values?

I could only find Xor.

For example,

43 Xand 6 = 2

because the 'Bits' for 43 = 32 + 8 + 2 + 1
and the 'Bits' for 6 = 4 + 2

So only '2' is an "ON" 'Bit' (1) for both 43 AND 6


big10p(Posted 2009) [#2]
The operator And is bitwise in Blitz3D. So, 43 And 6 = 2.


_PJ_(Posted 2009) [#3]
So many times I feel like a complete idiot on these forums!

Cheers Big10p :D