Standards /

WCPS-Manual / Precedence

In case of ambiguities in the syntactical analysis of a request, operators shall have the following precedence (listed in descending strength of binding):

  • Range field selection, trimming, slicing
  • unary –
  • unary arithmetic, trigonometric, and exponential functions
  • *, /
  • +, -
  • <, <=, >, >=, !=, =
  • and
  • or, xor
  • "," (interval constructor), condense, marray
  • overlay

In all remaining cases evaluation is done left to right.

Example

The following expression multiplies coverage D by 2 and adds the result to C:

C + 2 * D