Operators
Operator |
Associativity |
Description |
(...) |
None |
Grouping |
f(), x.y, a[i] |
Left |
Function call, property access, array indexing |
! |
Left |
Factorial |
^ |
Right |
Exponentiation |
+, -, not, sqrt, etc. |
Right |
Unary prefix operators (see below for the full list) |
*, /, % |
Left |
Multiplication, division, remainder |
+, -, || |
Left |
Addition, subtraction, array/list concatenation |
==, !=, >=, <=, >, <, in |
Left |
Equals, not equals, etc. "in" means "is the left operand included in the right array operand?" |
and |
Left |
Logical AND |
or |
Left |
Logical OR |
x ? y : z |
Right |
Ternary conditional (if x then y else z) |
= |
Right |
Variable assignment |
; |
Left |
Expression separator |
Copyright 2023 - BeriSoft Inc.
All rights reserved