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 Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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