LOOPTO        Conditional branch to label using looping

Top  Previous  Next

Syntax:

LOOPTO

[ label ]

Arguments:

[ label ]

A valid label within the current script file which is branched to if a specified number of loops has not been attained.

Options:

none

 

 

 

This script command directs execution back to [ label ] and is used in conjunction with LOOPCOUNT to execute a command or sequence of commands more than one time.

 

Consider the following example in which the variable file name is displayed three times (for no meaningful reason).

 

LOOPCOUNT 3

SET file name = "test file"

:many_tries

DISPLAY file name

LOOPTO many_tries

 

Related Command(s): LOOPCOUNT, LOOPIF, GOTO, IFERROR