Bitwise AND and OR

BlitzMax Forums/BlitzMax Programming/Bitwise AND and OR

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In other words

AND is &
OR is |
XOR is ~
NOT is ~

As per previous discussions in other threads, when you do:

a=~b

it does a `NOT B` operation and puts it in a

When you do:

a=b~c

(ie when you include a second variable), it does a `B XOR C` operation and puts it in a.