Bitwise exclusive-OR aka XOR:
XOR is a bit like normal OR. OR compares 2 or more values and evaluates to true if one or more of those values evaluate to true. XOR on the other hand only evaluates to true if only one of those values evaluate to true.
Example:
Code:
if (0 OR 0) // false
if (0 OR 1) // true
if (1 OR 1) // true
if (0 XOR 0) // false
if (0 XOR 1) // true
if (1 XOR 1) // false




