XenoGuard Documentation

Label

Actions » Programming » Flow Control » Label 

The Label action defines a marker in the action script to which the GoTo or On Error GoTo actions can jump. The sequential flow of actions is thus interrupted.

[+] How to add the Label action to the action script:

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Flow Control node, select the Label action.

Parameters:

The action has the following input parameters:


name Description

Label

Specifies the name of the label.

Allowed Context Scopes
 [Fixed, Local, Global]

Warning The name of a Label can be defined only once within the action script.
Information Only GoTo and On Error GoTo actions can be used to jump to a specified label within the action script. 

Example 1 (Execute a message box from a label):

This example performs a conditional statement for a local variable named Test with Text as data type. The Result of the conditional statement jumps to a specified label and then outputs via Message Box.


See other flow control actions: 

If
For Loop
For Each
While
Break
GoTo
Parallel
On Error Continue
On Error GoTo
Abort
Abort on Error