Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Logic & Boolean Algebra >

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
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team