Kilowatt Software's
Classic Rexx Tutorial
Language Level 4.00 (TRL-2)

Operator precedence

Order of expression evaluation

When multiple operators appear within an expression, these are processed as follows:

If you are uncertain how an expression will be evaluated, you are advised to use parentheses. This is particularly important when the expression exists in logic that is not typically executed -- e.g. in THEN/ELSE clauses, or WHEN/OTHERWISE clauses.

Some examples are helpful.


The order of operator precedence is as follows, from highest to lowest.

Note: the ¬ operator is a logical-not operator that is not available in all implementations. The backslash (\) is now preferred.

Kilowatt Software's -- Classic Rexx Tutorial -- Back to top
Click here if you have any comments or questions regarding this tutorial

Last updated on: 8 Aug 2002