[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Operator precedence determines the order of executing operators,
when different operators appear close by in one expression.
For example, *
has higher precedence than +
; thus,
a + b * c
means to multiply b
and c
, and then add
a
to the product.
You can overrule the precedence of the operators by using
parentheses. You can think of the precedence rules as saying where
the parentheses are assumed to be if you do not write parentheses
yourself. Thus the above example is equivalent to a + (b * c)
.
When operators of equal precedence are used together, the leftmost
operator groups first. Thus, a - b + c
groups as
(a - b) + c
.
This table lists radtest
operators in order from highest
precedence to the lowest:
$
(...)
+ - not !
* / %
+ -
< <= = != > >=
and
or