github.com/mithrandie/csvq@v1.18.1/docs/_posts/2006-01-02-operator-precedence.md (about) 1 --- 2 layout: default 3 title: Operator Precedence - Reference Manual - csvq 4 category: reference 5 --- 6 7 # Operator Precedence 8 9 The following table list operators from the highest precedence to lowest. 10 11 | precedence | operators | associativity | 12 | :- | :- | :- | 13 | 1 | [+ (unary plus)]({{ '/reference/arithmetic-operators.html#unary' | relative_url }}) | Right-to-left | 14 | | [- (unary minus)]({{ '/reference/arithmetic-operators.html#unary' | relative_url }}) | Right-to-left | 15 | | [!]({{ '/reference/logic-operators.html#not' | relative_url }}) | Right-to-left | 16 | 2 | [*]({{ '/reference/arithmetic-operators.html' | relative_url }}) | Left-to-right | 17 | | [/]({{ '/reference/arithmetic-operators.html' | relative_url }}) | Left-to-right | 18 | | [%]({{ '/reference/arithmetic-operators.html' | relative_url }}) | Left-to-right | 19 | 3 | [+]({{ '/reference/arithmetic-operators.html' | relative_url }}) | Left-to-right | 20 | | [-]({{ '/reference/arithmetic-operators.html' | relative_url }}) | Left-to-right | 21 | 4 | [\|\|]({{ '/reference/string-operators.html' | relative_url }}) | Left-to-right | 22 | 5 | [\=]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 23 | | [\=\=]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 24 | | [<]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 25 | | [<\=]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 26 | | [>]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 27 | | [>\=]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 28 | | [<>]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 29 | | [!\=]({{ '/reference/comparison-operators.html#relational_operators' | relative_url }}) | nonassoc | 30 | | [IS]({{ '/reference/comparison-operators.html#is' | relative_url }}) | nonassoc | 31 | | [BETWEEN]({{ '/reference/comparison-operators.html#between' | relative_url }}) | nonassoc | 32 | | [IN]({{ '/reference/comparison-operators.html#in' | relative_url }}) | nonassoc | 33 | | [LIKE]({{ '/reference/comparison-operators.html#like' | relative_url }}) | nonassoc | 34 | 6 | [NOT]({{ '/reference/logic-operators.html#not' | relative_url }}) | Right-to-left | 35 | 7 | [AND]({{ '/reference/logic-operators.html#and' | relative_url }}) | Left-to-right | 36 | 8 | [OR]({{ '/reference/logic-operators.html#or' | relative_url }}) | Left-to-right | 37 | 9 | [INTERSECT]({{ '/reference/set-operators.html#intersect' | relative_url }}) | Left-to-right | 38 | 10 | [UNION]({{ '/reference/set-operators.html#union' | relative_url }}) | Left-to-right | 39 | | [EXCEPT]({{ '/reference/set-operators.html#except' | relative_url }}) | Left-to-right | 40 | 11 | [:=]({{ '/reference/variable.html#substitution' | relative_url }}) | Right-to-left | 41