If-Then-Else Statement
This statement chooses between alternative paths of execution. You can use the if-then-else statement to control the flow of an application by establishing a variety of logical relationships.
This statement has the following syntax:
if condition then statementlist
[{elseif condition then statementlist}]
[else statementlist]
endif;
You can nest if statements.