Goto Action

Description

Send Workflow flow to the label indicated. Used to jump to another section of the Workflow. Sections are defined using Label Action.

IMPORTANT: Excessive use of Goto can create Workflows that are difficult or impossible to debug. If your Workflow requires more than a few goto steps it is recommended to consider re-structuring with "Sub-Workflows"  (using the Start Workflow Action).  In many programming  languages, the use of even one Goto statement is considered bad programming practice. Use at your own risk!

Declaration

<AMGOTO LABELNAME="text [label name]">

Examples

<AMIFFILEEXISTS ACTION="not_exist" SOURCE="c:\filename.txt">
<AMGOTO LABELNAME="problemhandler1">
</AMIF>
<AMFILECOPY SOURCE="c:\filename.txt" DEST="c:\newfolder\filename.txt">
<AMSTOPTASK>
<AMLABEL LABELNAME="problemhandler1">
<AMMESSAGEBOX>File not found!</AMMESSAGEBOX>

General Tab Parameters

Expression: Specifies the name of a pre-existing label in a Workflow. To create a label in a Workflow, use the Label Action.

Text, Optional
MARKUP: LABEL="problemhandler"

See Also

Label