Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

END-IF Terminate IF block

&pagelevel(4)&pagelevel

Domain: PROCEDURE

Command description

END-IF terminates blocks with conditional command sequences, i.e.:

  • IF block

  • IF-BLOCK-ERROR block

  • IF-CMD-ERROR block

Procedure execution then resumes with the command following END-IF. (Full details are contained in section “Defining conditional branches”.)

Format

END-IF

BLOCK = *LAST / <structured-name 1..255>

Operands

BLOCK =
Designates the IF, IF-BLOCK-ERROR or IF-CMD-ERROR block to be terminated.

BLOCK = *LAST
Reference to the IF, IF-BLOCK-ERROR or IF-CMD-ERROR block last opened.

BLOCK = <structured-name 1..255>
Reference to the tag of the IF, IF-BLOCK-ERROR or IF-CMD-ERROR block last opened; specifying another block tag produces an error message.

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 ".