xor

Bitwise XOR.

Returns a 1 in each bit position for which the corresponding bits of either but not both arguments are 1s.

Syntax

xor[x, y]

Parameters

x Number on which the function performs bitwise operation.
y Number on which the function performs bitwise operation.
Return Value Bitwise XOR value.

Examples

#<result> = xor[1, 3]

result: 2

See also

not, and, or, nand, nor, xnor