This figure illustrates the truth table for the logical “xor” operator (exclusive or). Exclusive or is different from logical or in that you can have one or the other, but not both.