Table C–1: Operator Precedence
Precedence
|
Operator
|
Description
|
Sixth (highest)
|
Unary -
|
Treats following value as a negative
|
Unary +
|
Treats following value as a positive
|
Fifth
|
MODULO
|
Returns the remainder after division
|
/
|
Division
|
*
|
Multiplication
|
Fourth
|
+
|
Addition
|
-
|
Subtraction
|
+
|
Concatenation
|
-
|
Concatenation with trailing-space trimming
|
Third
|
MATCHES
|
Indicates that a character string matches a specified pattern
|
BEGINS
|
Indicates that a character string begins with a specified value
|
= or EQ
|
Equal to
|
<> or NE
|
Not equal to
|
> or GT
|
Greater than
|
>= or GE
|
Greater than or equal to
|
< or LT
|
Less than
|
<= or LE
|
Less than or equal to
|
Second
|
NOT
|
Logical NOT
|
AND
|
Logical AND
|
First (lowest)
|
OR
|
Logical OR
|