857 B

Function not

Logical not. Flips boolean value of a given parameter.

Syntax

math.not(x)

Parameters

Parameter Type Description
x Number | BigNumber | Boolean | Complex | Unit | String | Array | Matrix | null | undefined First value to check

Returns

Type Description
Boolean Returns true when input is a zero or empty value.

Examples

math.not(2);      // returns false
math.not(0);      // returns true
math.not(true);   // returns false

a = [];
b = [2, 7, 1];

math.and(a);      // returns true
math.and(b);      // returns false

See also

and, or