TinTin++ Mud Client Manual
Mathematics
space
Mathematical expressions are used for calculations and boolean if checks. TinTin++ supports the full set of C operations, and some additional ones. Following is the priority list of the operators for numerical operations.
space
space
Operator priority can be ignored by using paranthesis, for example (1 + 1) * 2 equals 4, while 1 + 1 * 2 equals 3.
space
Some of these operators can also be used on strings. Strings must be encased in double quotes.
space
space
The > >= < <= operators perform basic string comparisons. The == != operators perform regular expressions, with the argument on the left being the string, and the argument on the right being the regex. For example "bla" == "%*a" would evaluate as 1 (true).
space
See also: Colors, Escape Codes and Regular Expressions.
space