Arithmetic operators
Perform mathematical calculations on numbers.
Division or modulo by zero returns
null instead of failing the evaluation. Arithmetic that overflows the numeric range returns an error.
Operator precedence
Operations follow standard mathematical precedence:^(power)*,/,%(multiply, divide, modulo)+,-(add, subtract)
Comparison operators
Compare values and return boolean results.Logical operators
Combine boolean conditions.Short-circuit evaluation
Logical operators stop early when the result is determined:Ternary operator
Conditionally return one of two values.Null coalescing operator
Return the first non-null value.Membership operators
Check if a value exists in a collection or range.In operator
Not in operator
Negate membership tests:String operators
Concatenation
The+ operator joins strings: