contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif TinTin #loop command

This command will repeat a specified command within a loop. The format of the command is as follows:

#loop {from,to} {command}

from and to are integers for the start and end of the loop, respectively. command will be executed each time through the loop, with the variable %0 containing the current loop value.

Example

The following command:

say I can count backwards!; #loop {10,1} {say %0!}; say Hah!

Will result in your saying the following:

I can count backwards!

10!

9!

8!

7!

6!

5!

4!

3!

2!

1!

Hah!