
Khoros(Expressions)          Khoros           Khoros(Expressions)

     ARITHMETIC OPERATORS

     Valid expressions may include the following standard arith-
     metic operators:

     "*"      Multiply - multiple the two expressions together
     "/"      Divide   - divide the second expr from the first
     "-"      Subtract - subtract the second expr from the first
     "+"      Add      - add two expressions together
     "**"     Power    - take the first expr to the power of the second

     ARITHMETIC BIT-WISE OPERATORS

     Valid bit-wise expressions may include the following stan-
     dard C style operators.  Note:  all expressions will be
     evaluated and then cast to integers in order to do the
     arithmetic bit-wise operation.

     "<<"     Shift Left      - shift the first expr to the left by second
     ">>"     Shift Right     - shift the first expr to the right by second
     "&"      Bit wise AND    - and the two expressions together
     "|"      Bit wise OR     - or the two expressions together
     "^"      Bit wise XOR    - exclusive or two expressions together
     "~"      Bit wise INVERT - invert the expression
     "%"      Bit wise MODULOS - modulos the expression

     ARITHMETIC ASSIGNMENT OPERATORS

     Arithmetic assignment operators are ones in which the user
     updates the current expression with a new expression.  The
     new and old expressions are operated on by the type of
     assignment operator.   An example is the "+=" operator which
     adds the new expression to the existing expression.  Valid
     assignment expressions may include the following standard C
     style operators.

     "*="     Multiply     -  multiply the current expr by the original expr
     "/="     Divide       -  divide the current expr from the original expr
     "-="     Subtract     -  subtract the current expr from the original expr
     "+="     Add          -  add the current expr to the original expr

       (Note: both expressions will be evaluated and then cast to integers
           in order to do the arithmetic bit-wise operation.)
     "<<="    Shift Left   -  shift the first expression to the left by second
     ">>="    Shift Right  -  shift the first expression to the right by second
     "&="     Bit wise AND -  and the current expr with the original expr
     "|="     Bit wise OR  -  or the current expr with the original expr
     "^="     Bit wise XOR -  exclusive or the current expr with the original expr

     Copyright 1992, University of New Mexico. All rights
     reserved.

Khoros                    Release: 1.0                          1

