Available Operators

The following operators can be used in expressions:

Operator Description
+ Perform addition on numeric values.
- Perform subtraction on numeric values.
* Perform multiplication on numeric values.
/ Perform division on numeric values.
% Return the remainder of the left-hand Number divided by the right-hand Number.
& Join strings.
= Return true if the left and right sides are equal; otherwise, false. Compare numbers to each other or string to string.
!= Return true if the left and right sides are not equal, false if they are. Compare Numbers to each other or String to String.
<> Same as !=.
< Return true if the left side is less than the right side; otherwise, false. Both the left and right sides must be Numbers.
<= Returns true if the left side is less than or equal to the right side; otherwise, false. Both the left and right sides must be Numbers.
> Returns true if the left side is greater than the right side; otherwise, false. Both the left and right sides must be Numbers.
>= Returns true if the left side is greater than or equal to the right side; otherwise, false. Both the left and right sides must be Numbers.

関連記事