GoTo - branch to a label in the script file

Return to Introduction  Previous page  Next page

goto label:

Where:

labelis 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:".

 

WaitForRECON,LABEL1:,Ready,LABEL2:        
LABEL1:
typebegin
keyenter
gotoEXIT:
LABEL2:
typetest
keyenter
EXIT:        
exit        

 

See Also:

 

Script Command Summary

Script Variables

Using the Scripting Language


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.