This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Xor

Xor[e1, e2, ...]
is the logical XOR (exclusive OR) function. It gives True if an odd number of the e_i are True, and the rest are False. It gives False if an even number of the e_i are True, and the rest are False.
  • 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 4.1