Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Changes for zMUD users
  Importing zMUD files
  New Features
  New Commands
  New Functions
  Compiled scripts
  [] and <> syntax removed
  %%1 syntax removed
  AND OR operators changed
  Class specifier changes
  #PRIORITY command
  Quotes around %1..%99
  #VAR command
  #MENU command
  64-bit integers
  #GALIAS and #GVAR
  %lastcom
  Expression optimization
  Aliases (Auto-append)
  atconnect alias replaced with Events
  #GAG in #ONINPUT trigger
  #T+ vs #CLASS
  Tab completion changes
  Multi-threaded #WAIT
  %btncol arguments reversed
  Multiplaying :window: syntax
  Start lines with commands
  #FUNCTION command
  Variable assignment syntax
AND OR operators changed [[cmud_changes_andor]] 
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 ||
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net