IF statement

The syntax of the IF statement is:

IF (expression)
  THEN
    statements
ELSE IF (expression)
  THEN
    statements
ELSE
    statements
ENDIF
ENDIF

For details about expressions, see Expressions in ASCII state table statements. Compound expressions are not supported in IF statements.