binary operations

Blitz3D Forums/Blitz3D Programming/binary operations

oh, and note, bitwise boolean operators can not only be used to compare stuff, but also to manipulate the bits of numbers. eg:

a=%11110
b=%01011

c= a and b

c= %01010

the bits in c are set if they are set in a AND b.

an other example:

a=%100011
b=%001101

c= a OR b
c is %10111

the bits in c are set if they are set eighter in a or in b (or in both).