Previous Topic: IF Control StatementNext Topic: Examples


Syntax

IF condition THEN
   …
   …
ELSE
   

END

where:

condition

Specifies the condition that is to be checked to determine the sequence of statements to be executed.

ELSE

Used to nest the IF control statement to any level within DO or other IF control statements.

The ELSE control statement is optional.