Adding a Return Instruction

You can interrupt a task execution with a Return instruction.


Before you begin: The Sequence Editor window is opened.
See Also
About the Sequencing Editor
  1. To add a Return instruction in a sequence, do one of the following:
    • Select Return in the toolbox and then click the blank page.
    • Drag Return to the blank page.


    • The Return instruction is added to the blank page.
    • The Return dialog box appears.

    The parameters of the Return instructions are optional:

    • Goto Label must be entered only if the Return instruction is the target of a Goto instruction.
    • If Display Name is entered, its value replaces the instruction text: Return.

  2. Click the check mark.


    Note: The icon represents a Return instruction.

    A Return instruction is normally nested in a Condition instruction. See a typical example below.

    In the sequence above, the task execution ends when Emergency is true. If this task is called from another task (refer to Calling Tasks), the next instruction to be executed is the instruction after the Call Task instruction in the parent task.