lnot()

Performs a logical NOT operation.

Returns `1` if the given value is zero, otherwise returns `0`.

Syntax

lnot(value)

Parameters

Parameter Type Description
value Number The numeric value to evaluate.

Return Value

Examples

lnot(0);   // returns 1
lnot(5);   // returns 0
lnot(-3);  // returns 0

See also

lnot
land
lor
lxor
lnand
lnor
lxnor