AND: Difference between revisions

From iMath
Jump to navigation Jump to search
(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...")
 
mNo edit summary
 
Line 13: Line 13:
[[OR]] [[NEG]]
[[OR]] [[NEG]]
}}
}}
[[Category:Operator]]

Latest revision as of 14:54, 8 July 2017

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