[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

13.2.6.8 Operator Precedence (How Operators Nest)

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:

$
Dereference.

(...)
Grouping.

+ - not !
Unary plus, minus. Unary boolean negation.

* / %
Multiplication, division, modulus.

+ -
Addition, subtraction.

< <= = != > >=
Relational operators.

and
Logical `and'.

or
Logical `or'.



This document was generated by Sergey Poznyakoff on November, 20 2004 using texi2html