OR

From iMath
Jump to navigation Jump to 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