| TinTin++ Mud Client Manual |
|
TinTin++ Echo Forall Format Function Gag Grep Help Highlight If Ignore Info Kill Line List Log Loop Macro Map Math Mathexp Message Name Nop Number Parse Path Pathdir Prompt Read Replacestring |
|
|
| Loop |
| Syntax: #loop {numberrange} {commands} |
| 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. |
Example: #loop {1 10} {say &0} |
| This equals: say 1;say 2;say 3 ... say 9;say 10 |