Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - precedence of operators<b></b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Precedence of Operators


   When more than one type of operator appears in expression, the
   order of evaluation is the following:

      . Character
      . Mathematical
      . Relational
      . Logical

   Expressions containing more than one operator are always
   evaluated from left to right.  Parentheses can be used to
   change the precedence level of operators.  If parentheses are
   nested, the innermost set of parentheses are evaluated first.

   Each of the operator types has an evaluation order as follows:

    . Mathematical Operators

       . Operators contained in parentheses and functions (evaluated
         from left to right)
       . Exponentiation
       . Multiplication and division (from left to right)
       . Addition and subtraction (from left to right)

       For example:
          ? 3 + 5 * 5                   && Result: 23
          ? (3 + 4) * 5                 && Result: 35


   . String Operators

       . Operators and functions contained in parentheses
       . From the left of the expression to the right


   . Relational Operators

       . Operators and functions contained in parentheses
       . From the left of the expression to the right


   . Logical Operators

       . Operators and functions contained in parentheses
       . .NOT.
       . .AND.
       . .OR.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson