Double meaning of ~

BlitzMax Forums/BlitzMax Programming/Double meaning of ~

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I am a little confused with how to properly use the tilde ~

"Variable1 ~ Variable2" is the same as saying Variable 1 XOR Variable 2?

...while...

"~ Variable 1" is the same as saying NOT Variable 1 (do a bitwise NOT?)

Does `complement` mean the same as `NOT`?

So if you only have one variable in the expression, it's a NOT, otherwise it's an XOR?