The If - EndIf statement evaluates the boolean expression supplied to the If.
When the boolean expression is True, execution starts immediately after the If and terminates immediately before the EndIf. When the boolean expression is False, the statements between If and EndIf are ignored.
After completion of the If - EndIf statement execution continues with the first statement following EndIf.
The structure of the If - EndIf statement is:
If <lBooleanExpression>
< Block
of code >
EndIf