loop <num> <command_block>
Loop through one or a block of commands.
<num>
The number of times the loop is to be executed, an integer expression.
<command_block>
One command or a block of commands to be executed on each iteration of the loop.
None
A jump to the end of the loop may be made with the continue command.
A break out of the loop may be made with a break command.
Loop of one command.
loop 5; x = x ** 1.1
Loop of a command block.
loop 5 { x = x ** 1.1 tell <'X has a value',x>; # One output line. }
Commands: |