%10 XOR %01 = %11
%11 XOR %01 = %10
%01 XOR %01 = %00
%00 XOR %01 = %01
NOT %10 = %01
NOT %1 = %0
NOT %0 = %1
XOR, Exclusive OR, means that if either of the conditions are true (but not both of them), then the output is true.
NOT gives you the bitwise opposite of the input.
From the help file:
Quote: "BITWISE XOR signified by the symbol ~~ will XOR all bits of one value with another. %1111 ~~ %0011 becomes %1100."
Pretty straitforward there...
However this bit from the help file:
Quote: "BITWISE NOT signified by the symbol .. will NOT all bits of the right value. %1111 .. %1010 becomes %0101.
"
I would guess that the first value indicates which bits are to be included in the NOT operation. I've never seen NOT used in this manner.