Condition

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