FBPL Command Reference

Table Of Contents
146
10.21 IF…THEN…ELSE…ENDIF LOOP
Description
Execute one or more statements conditionally. Either a single-line syntax or multiple-line “block” syntax can
be used.
Syntax
IF condition THEN statement
Note the single-line form of IF …THEN does not use an ENDIF statement.
Or
IF condition THEN
Statements
ENDIF
Or
IF condition THEN
Statements
ELSE
Statements
ENDIF
Or
IF condition 1 THEN
Statement block 1
ELSEIF condition 2 THEN
Statement block 2
...
ELSEIF condition n THEN
Statement block n
ENDIF
Note:
The syntax of IF…THEN…ELSE requires that the command be typed in one single line in less than 255 characters.
Parameter
Description
condition
Available relational operator: <, >, =, <=, >=, <>
*Relational operator <>, not equal.
Statement
Only one statement is available in