The compound IF statement gives two choices (once)
Any time execution encounters a compound IF statement, one of two sets of statements are chosen:
IF control_expression
A first set of one or more statements
ELSE
A second set of one or more statements
ENDIF
- If control_expression tests true,execute the first set of statements, once.
- If control_expression tests false,execute the second set of statements, once.
- When this style IF statement is encountered, one or the other of the sets of statements is done.
- Never both sets of statements; never no set
- Always one set or the other