Description

The if-else-endif statement perform the task of checking a Condition if it returns true or false.If the Condition is Satisfied then statement/s within the if construct are executed else if the condition is not satisfied then statements within the else part are executed.

Syntax

if condition
statement1
statement2
.
.
else
statement1
statement2
.
.
endif

Back