ELSEIF Command
ELSEIF — Test for an alternative condition if previous condition is not met.
Synopsis
ELSEIF dataref comparator dataref [
{ AND | OR }
dataref
comparator
dataref
...]
Introduction
The ELSEIF command executes a logic block
if the condition is met and if previous IF
ELSEIF conditions are not met.
Structures can be nested.
Arguments
data_ref
|
Valid data reference, string or numeric value.
|
comparator
|
|
Example
. . .
. . .
IF L-Counter < 10
CALL ProcessSmallOrder L-OrderNumber
ELSEIF L-Counter = 10
CALL ProcessMediumOrder L-OrderNumber
ELSEIF L-Counter >= 10
CALL ProcessLargeOrder L-OrderNumber
ENDIF
. . .
. . .
Related Commands
ELSE
ENDIF
IF