WLJS LogoWLJS Notebook

Xor

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

Examples

Basic XOR:

Xor[True, False]
(* True *)

Xor[True, True]
(* False *)

Xor[False, False]
(* False *)

Multiple arguments:

Xor[True, True, True]
(* True *)

Please visit the official Wolfram Language Reference for more details.

On this page