ifelse ( : : Condition : )

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.


Parameters

Condition (input_control)
integer -> integer
Condition for the if statement.
Default value: 1


Result

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)


Parallelization Information

ifelse is reentrant, local, and processed without parallelization.


Alternatives

if


See also

for, while


Module

Basic operators



Copyright © 1996-2005 MVTec Software GmbH