The if-elseif-endif construct perform the task of checking multiple Conditions. If a particular condition is Satisfied then statement/s within that if construct are executed.The if-elseif-endif may have an optional else part.
Syntax
if condition
statement1
statement2
.
.
.
elseif condition
statement1
statement2
.
.
.
elseif condition
statement1
statement2
.
.
.
else
statement1
statement2
.
.
.
endif