|
|
|
In zMUD, you could use the | character for a "or" operation, and the & operator for an "and" operation in a logical expression. To avoid confusion with the | character in string lists, CMUD requires the use of || and &&, which is the same syntax used in the C language.
For example:
Code: |
zMUD:
#IF ((@a > 1) | (@b = 2)) {true} {false}
CMUD:
#IF ((@a > 1) || (@b = 2)) {true} {false} |
You can still use the keywords AND instead of && and OR instead of || |
|