TinTin++ Mud Client Manual  
Loop
space
Syntax: #loop {numberrange} {commands}
space
The loop command works like a simplified for loop in c. The numberrange part should exist of 2 numbers separated by a space surrounded by braces. The command will increment or decrement (depending on the number range) untill the second number is reached. For every in/de-cremention the commands part will be executed. The value of the in/de-cremention counter will be stored in the &0 variable and can be used in the commands part.
space
Example: #loop {1 10} {say &0}
This equals: say 1;say 2;say 3 ... say 9;say 10
space