User Tools

Site Tools


loop

This is an old revision of the document!


Loop

Loop is a utility function to allow the user to do multiple iterations
of a command.  Loop leverages the variable $ which represents the loop
control variable.  Loop will start at the first number and run until it
equals the second number filling in the $ with that number.  There is a
maximum of 500 iterations.
Syntax: loop <begin_index> <end_index> <command>
For example: loop 1 2 say $ will result in:
You say '1'
You say '2'
loop.1615920072.txt.gz · Last modified: 2021/03/16 18:41 by lynx