Condition with alternative.
ifelse is a condition with an alternative. If the condition is true (i.e., not 0), all expressions and calls between the head and operator endif are performed. If the condition is false (i.e., 0) the part between else and endif is executed. Note that the operator is called ifelse and it is displayed as if in the program text area.
|
Condition (input_control) |
integer -> integer |
| Condition for the if statement. | |
| Default value: 1 | |
ifelse returns 2 (H_MSG_TRUE) if the evaluation of the expression yields no error. else and endif (as operators) always return 2 (H_MSG_TRUE)
ifelse is reentrant, local, and processed without parallelization.
Basic operators