goto label:
Where:
label | is a label in the script. label names are case sensitive, contain no embedded blanks and end with a colon. This parameter may be a variable containing a label name. |
The goto command branches to the specified label. Labels are defined by placing a label name on a script line starting in column one.
Examples
goto TEST_LABEL:
goto LABEL1:
goto $LABELNAME
The goto command in the following script branches to label "EXIT:", skipping the two commands between "LABEL2:" and "EXIT:".
WaitFor | RECON,LABEL1:,Ready,LABEL2: |
LABEL1: |
type | begin |
key | enter |
goto | EXIT: |
LABEL2: |
type | test |
key | enter |
EXIT: |
exit |
See Also:
TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.