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 directions 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 message Wow! is transmitted three times.

 

LOOPCOUNT 3

:many_tries

LINEOUT "Wow!"

LOOPTO many_tries

 

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