5 Operators and Functions

Operational Hierarchy

When arithmetic, relational, and logical operators appear in the same expression, the operations are performed according to this hierarchy:


() (parentheses)                   highest
^ or ** (exponentiation)
NOT, unary +,-
*,/,MOD,DIV
+,-
=,<,>,<=,>=, or # (relational)
AND
OR,EXOR                            lowest
Remember that the order of execution for operations of the same priority level is from left to right. When parentheses are used, however, the operations within parentheses are executed first.


Eloquence Language Manual - 19 DEC 2002