8.18/6/2018

Condition Structures

Name:

Description:

If

function

Evaluates an expression and returns one of two specified values according to the results of the evaluation.If (function)

If ...

ElseIf ...

EndIf

procedure

This command structure can define up to two conditional blocks. Statements nested within the first block are executed only if the condition specified in the if statement returns true. If it returns false, the program branches to the first statement in the second block, if one has been defined using the elseif statement. Otherwise, control flows to the first statement following the endif command.If … ElseIf… EndIf (procedure)