Sib-pair Command: if


ClassAlgebraic operators and function
Nameif
Arguments <logical expression> then <action> [else if <logical expression> then <action>]...[else <action>].

Conditional evaluation of expressions. Note that if statements can be nested (as of 2007-07-11).

Example:

>> if (a==1) then if (b<0) then a=a+1 : b=a^2 else c=a+b else c=a

<< (comparison)Up to index>> (function)