OR

From iMath
Revision as of 15:08, 8 July 2017 by Jrheinlaender (Talk | contribs) (Created page with "{{Keyword | <code>condition OR condition</code> | Combine the two conditions with a logical OR. |3= <code>0 OR 1</code> will evaluate to 1. <code>VAL(x) > 2 OR VAL(x...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

condition OR condition


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Combine the two conditions with a logical OR.


Example

0 OR 1 will evaluate to 1.

VAL(x) > 2 OR VAL(x) < -2 will evaluate to 1 if x has a value greater than 2 or less than -2.

x == 0 OR y == 0 will always evaluate to -1 because it is not possible to compare symbols and numbers!

See also

AND NEG