NEG

From iMath
Jump to navigation Jump to search

Syntax

NEG condition


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Logically negate the condition.


Example

NEG 0 will evaluate to 1.

NEG VAL(x) > 2 will evaluate to 1 if x has a value less or equal 2.

See also

AND OR