AND

From iMath
Revision as of 14:51, 8 July 2017 by Jrheinlaender (talk | contribs) (Created page with "{{Keyword | <code>condition AND condition</code> | Combine the two conditions with a logical AND. |3= <code>0 AND 1</code> will evaluate to 0. <code>VAL(x) > 2 AND VA...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

condition AND condition


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Combine the two conditions with a logical AND.


Example

0 AND 1 will evaluate to 0.

VAL(x) > 2 AND VAL(x) < 5 will evaluate to 1 if x has a value between 2 and 5.

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

See also

OR NEG