Condition

From iMath
Revision as of 15:08, 8 July 2017 by Jrheinlaender (talk | contribs) (Created page with "Conditions are currently only parsed within the context of the ifelse function. If the condition is an equation, take the difference of the left- and right-h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Conditions are currently only parsed within the context of the ifelse function.

If the condition is an equation, take the difference of the left- and right-hand-sides and interpret it according to the operator.

If the condition is an expression, interpret zero as false, anything greater than zero as true, and -1 as "not able to evaluate".

If the expression or equation cannot be evaluated, the result will be -1.

See also AND, OR and NEG.