LOOPCOUNT Define loop counter |
Top Previous Next |
This script command sets the number of times a command sequence is repeated. A command sequence is defined with the LOOPTO and LOOPIF commands.
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 :done
Related Command(s): LOOPTO, LOOPIF, GOTO, IFERROR
|