XOR

n = a XOR b

Bitwise exclusive OR.

Truth table:

a b a XOR b
0 0 0
0 1 1
1 0 1
1 1 0

Example

print 0 xor 1                     ' Output: 1
print bin(0b1100 xor 0b1010)      ' Output: 110
Language
If there is insufficient information on this page and you wish learn more about XOR, please send an email to smallbasic@gmail.com. You can help to improve information about XOR by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.