Operators and precedence

The following table lists the operators and their precedence, where 1 is the highest precedence.

Operator

Operation

Precedence

:=

Assignment

NA

[]

List subscript

1

:

List concatenation

2

+

-

Positive

Negative

3

*

**

/

*/

Multiplication

Permuted multiplication

Division

Permuted division

4

+

*+

-

*-

Addition, concatenation

Permuted addition

Subtraction

Permuted subtraction

5

=

*=

<>

!=

=!

><

*<>

<

*<

>

*>

<=

*<=

>=

*>=

Equal

Permuted equal

Not equal

Not equal

Not equal

Not equal

Permuted not equal

Less than

Permuted less than

Greater than

Permuted greater than

Less than or equal

Permuted less than or equal

Greater than or equal

Permuted greater than or equal

6

!

&

|

Logical NOT

Logical AND

Logical OR

7