BrutusMUD help


Level: 61

Most of the basic numeric operators are legal and perform the same
function as in C. The string operators are a bit more confusing. There are
negative versions of some of the operators. These are not strictly needed,
since the if/else construct of Control Flow commands can handle either case.

Numeric Operators: == != > < >= <= & | String Operators: == != / !/

For strings, == and != check for exact match between the two strings
and the other two, / and !/ check to see if the second string is contained in
the first one. This is so things like: if name($n) / guard will respond
true to "cityguard" "guard" "guardian" etc. Using == on a name implies
that you are matching the complete name "cityguard guard" or whatever.
The string operators are case SENSITIVE.


Back to index


© Michal Kumžák 2011 | Provozováno na CMS E4E | Mapa webu