lxnor()

Performs a logical XNOR (NOT XOR) operation.

Returns `1` if both values are either zero or nonzero, otherwise returns `0`.

Syntax

lxnor(value1, value2)

Parameters

Parameter Type Description
value1 Number The first numeric value to check.
value2 Number The second numeric value to check.

Return Value

Examples

lxnor(0, 0);   // returns 1
lxnor(1, 1);   // returns 1
lxnor(1, 0);   // returns 0
lxnor(0, 5);   // returns 0

See also

lnot
land
lor
lxor
lnand
lnor
lxnor