Go to
Verb: goto
Advances or returns to the script point where the marker is inserted.
Syntax
goto --label(String)
Inputs
| Script | Designer | Required | AcceptedTypes | Description |
|---|---|---|---|---|
| --label | Label | Required | Text | Marker used to direct the point to which the script should advance or return. |
Example
While the variable used as a counter is less than 10, the Go to command returns to the point where the Insert Label command is and increments 1 to the variable.
defVar --name counter --type Numeric --value 0
label --name IBM
incrementVar --number ${counter}
logMessage --message Executed --type "Info"
if --left "${counter}" --operator "Less_Than" --right 10
goto --label IBM
endIf
//
// Result: Executed
// Executed
// Executed
// Executed
// Executed
// Executed
// Executed
// Executed
// Executed
// Executed
Remarks
Label is created in the Insert Label command.