Xnor

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

DetailsDetails

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