Wilang Documentation1.0.0+4

xor#

Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.

Available in: math cells, REPL.

Syntax#

x xor y
xor(x, y)

Arguments and behavior#

Use the callable form shown in the example. Matrix dimensions must agree for matrix operations. Scalar comparison produces a boolean.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
xor(true,false)

Expected result: true.

See also#

not · and · or

All functions · Math guides