The if-endif statement perform the task of checking a Condition if it returns true.If the Condition is Satisfied statement/s within the if-endif construct are executed. The If-Endif Does not check the False Part of Condition.
Syntax
if condition
statement1
statement2
.
.
.
endif