Command: loop

Syntax

loop <num>
    <command_block>

Description

Loop through one or a block of commands.

Parameters

Switches

None

Notes

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.

Examples

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.
}

See Also

Commands:

for