NEG

From iMath
Revision as of 14:56, 8 July 2017 by Jrheinlaender (Talk | contribs) (Created page with "{{Keyword | <code>NEG condition</code> | Logically negate the condition. |3= <code>NEG 0</code> will evaluate to 1. <code>NEG VAL(x) > 2</code> will evaluate to 1 if <co...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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