LOOPCOUNT        Define loop counter

Top  Previous  Next

Syntax:

LOOPCOUNT

[ count ]

Arguments:

[ count ]

Numeric count value

Options:

none

 

 

 

This script command sets the number of times a command sequence is repeated. A command sequence is defined with the LOOPTO and LOOPIFcommands.

 

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): LOOPTO, LOOPIF, GOTO, IFERROR