TinTin++ Mud Client Manual  
If
space
Syntax: #if {condition} {true} {false}
space
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.
space
See the help file on Mathexp and Regexp for more information.
space
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.
space