The IF statement evaluates a conditional expression and transfers program
control, depending on the resulting value.
Examples
IF A > 0
THEN PRINT A
ELSE PRINT "A IS NOT GREATER THAN 0"
END IF
PRINT A IF A > 0
1 – Syntax
Conditional:
IF cond-exp THEN {statement} [ELSE {statement...}] [END IF]
Statement Modifier:
statement IF cond-exp