if ( : : Condition : )

Conditional statement.

if is a conditional statement. The condition contains a boolean expression. If the condition is true, the body is executed. Otherwise the execution is continued at the first expression or operator call that follows the corresponding endif.


Parameters

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


Result

if returns 2 (H_MSG_TRUE) if the evaluation of the expression yields no error. endif (as operators) always returns 2 (H_MSG_TRUE)


Parallelization Information

if is reentrant, local, and processed without parallelization.


Alternatives

ifelse


See also

for, while


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH