IF statement.

The IF statement causes a condition to be evaluated. The subsequent action of the runtime element depends on whether the value of the condition is true or false.

Format.

          IF condition-1 [ THEN ] statement-1 [ ELSE statement-2 ] [ END-IF ]