Next: Conditions with the if-element
Up: Real subfunctions
Previous: Delay
Contents
Index
if
The if function works similar to the if-element (see section 9.8 on page ). It will evalue a condition and than, depending on whether the condition result is true or false, will return the value of its first (true case) or second (false case) subfunction.
Syntax:
Description of the elements:
- : The condition of the if-function as described in section 9.8 on page . If the condition is true, the value of first subfunction will be returned, else, if the condition is false, the value of the second subfunction will be returned.
- : The first subfunction of the if function.
- : The second subfunction of the if function.
Example:
-
; will return , if the variable is lower than , else will be returned
Betti Österholz
2013-02-13