Label

 

The Label command is used in conjunction with the Go to command. It is used as a marker to be placed in the script. The Go to command moves to the line in the script where the Label is located and continues playing the macro from that point forward. The macro can either jump ahead in the script or return to a previous line in the script.

 

 

Script Editor > Expand Macro Control Category > Label

 

 

Label

Create a name for the label to be inserted into 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 and Label commands 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