| TinTin++ Mud Client Manual |
| Foreach |
| Syntax: #foreach {list} {variable} {commands} |
| The foreach command works like a simplified loop. Each word in the list will be stored in the variable at execution time and can be used in the commands part. |
Example: #foreach {Bob Jim Tom} {name} {say Hello $name!} |
| This equals: say Hello Bob!;say Hello Jim!;say Hello Tom |