Go To

 

The Go To command opens up numerous possibilities when using the conditional If statements. Use this feature to instruct macros to move to specific lines in the macro script without running the commands in between. For instance, if a variable doesn't equal a certain value, then skip the next 15 lines of the script and continue from that point. The macro can either jump ahead in the script or return to a previous line in the script.

 

 

Script Editor > Expand Macro Control Category > Go To

 

 

Label

Insert the name of the label previously created using the Label command. The macro goes to the line in the script where the label is located and starts playing back the next command in the script.

 

 

üNote: The label is limited to 32 characters in length and does not accept a variable value.

 

Warning: It is not advisable to use the Go To command to exit out of a loop or an If statement. Do not exit completely out of a Repeat loop, the ASCII Text File Process command, Text File Process command or an If /End If block using the Go To command. Use the Break command instead.

 

 

Below are two macro syntax examples using the Go To and Label commands:

 

 

Acceptable

  If Variable %Test% Equals "1"

    Goto:ConditionMet

     ...Other macro steps

    :ConditionMet

  End If

 

Not Advisable

 If Variable %Test% Equals "1"

    Goto:ConditionMet

    ...Other macro steps

 End If

:ConditionMet