BASIC stamp manual v2.2

4: BASIC Stamp Command Reference – ^/
BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com Page 121
The Xor Not operator (^/) returns the bitwise XOR NOT of two values.
Each bit of the values is subject to the following logic:
0 XOR NOT 0 = 1
0 XOR NOT 1 = 0
1 XOR NOT 0 = 0
1 XOR NOT 1 = 1
The result returned by ^/ will contain 1s in any bit positions in which the
first value and second values are equal.
Example:
SYMBOL value1 = B2
SYMBOL value2 = B3
SYMBOL result = B4
value1 = %00001111
value2 = %10101001
result = value1 ^/ value2
DEBUG %result ' Show result of OR NOT (%01011001)
X
OR NOT: ^/
1
1