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 |
0 | CMD0001 | No error | |
1 | CMD0202 | Syntax error | |
1 | SDP0118 | Command in false context | |
1 | SDP0223 | Incorrect environment | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
130 | SDP0099 | No further address space available |
Example
See the IF command, "IF Initiate IF block ".