Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

ELSE-IF Initiate alternative branch in IF block

&pagelevel(4)&pagelevel

Domain: PROCEDURE

Command description

The ELSE-IF branch is executed if the condition specified in the ELSE-IF command applies; otherwise the system searches for the next branch in the IF block or an END-IF command.The ELSE-IF branch contains all commands positioned between the current ELSE-IF command and the next ELSE-IF, ELSE or END-IF command. (Full details are contained in section “Creating the procedure body”.)

Format

ELSE-IF

CONDITION = <test 0..1800 with-low bool-expr>

Operands

CONDITION = <test 0..1800 with-low bool-expr>
Logical expression
Defines the condition which must be met in order for the commands in the current ELSE-IF branch to be executed (see chapter “Expressions” for information on logical expressions).

Command return codes

(SC2)

SC1

Maincode

Meaning


0CMD0001No error

1CMD0202Syntax error

1SDP0118Command in false context

1SDP0223Incorrect environment

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

130SDP0099No further address space available

Example

See the IF command, "IF Initiate IF block ".