Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Defining branches

&pagelevel(3)&pagelevel

Branches are executed using the branch commands, which terminate the sequential processing of commands, “branch” to a defined location in the procedure and resume procedure execution at that location.

The following branch commands are available in SDF-P:

  • EXIT-BLOCK

  • CYCLE

  • GOTO

  • INCLUDE-BLOCK

Branch commands can be used to address only those branch destinations that are contained in the current command block or in command blocks that surround the current command block.

It is not possible to branch to a command block that is nested more deeply by one or more levels.

Branch destinations are tags that are set in command calls. These tags can be used in the EXIT-BLOCK, CYCLE, GOTO and INCLUDE-BLOCK branch commands.

The branch commands can be divided into three groups:

  • commands whose branch destination is always the begin of the block (INCLUDE-BLOCK)

  • commands whose branch destination is always the end of the block (EXIT-BLOCK, CYCLE)

  • commands that address any branch destinations (GOTO and, compatible with non-S procedures, SKIP-COMMANDS).