Mathematical operators

An operator in an expression is one of the shorthand notations used to identify arithmetic operators, logical operators, and comparison operators, or similar processing operations.

The following operators are supported in expressions. Most correspond directly to Java operators and Java language processing:

Operator Meaning
+ Addition, string concatenation, unary plus
- Subtraction, also unary minus
* Multiplication
/ Division
% Remainder
== Identity
!= Not identity
! Boolean NOT (complement)
< less than comparison
<= less than or equal comparison
> greater than comparison
>= greater than or equal comparison
= equal value comparison, also assignment
&& conditional AND
|| conditional OR
+=, -=, /=, %=, *= assignment with operation
?: Boolean test. Deprecated in favor of @if() function.