Xor

Xor[e1, e2, ...]
is the logical XOR (exclusive OR) function. It gives True if an odd number of the are True, and the rest are False. It gives False if an even number of the are True, and the rest are False.

DetailsDetails

  • Xor[e1, e2, ...] can be input in StandardForm and InputForm as . The character can be entered as EscxorEsc or \[Xor].
  • Xor gives symbolic results when necessary, applying various simplification rules to them.
  • Unlike And, Nand, Or, and Nor, Xor must always test all its arguments, and so is not a control structure, and does not have attribute HoldAll.
New in 1 | Last modified in 5
New to Mathematica? Find your learning path »
Have a question? Ask support »