| TinTin++ Mud Client Manual |
|
TinTin++ Chat Protocol Class Colors Commands Config Cr Delay Echo Forall Format Function Gag Grep Help Highlight If Ignore Info Kill Line List Log Loop Macro Map Math Mathexp Message Name Nop |
|
|
| If |
| Syntax: #if {condition} {true} {false} |
| The condition is a c style mathematical or regular expression. Strings must be surrounded by quotes " ". Any none zero result will be executed as a command in the true part. If the result equals zero it will be executed as a command in the optional false part. |
| See the help file on Mathexp and Regexp for more information. |
Example: #act {%0 tells you} {#if {"%0" == "Heidi"} {tell %0 I'm afk darling} {tell %0 I'm afk dude}} |
| Useful if you go afk or writing scripts or something. |