lnand()

Performs a logical NAND (NOT AND) operation.

Returns `1` if at least one of the values is zero, otherwise returns `0`.

Syntax

lnand(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

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

See also

lnot
land
lor
lxor
lnand
lnor
lxnor