Operators

At the script, you can use the following operators.

Arithmetic Operators
+Addition
-Subtraction
*Multiplication
/Division
%Modulus
++Increment
--Decrement


Assignment operators
=Assignment
+=Addition
-=Subtraction
*=Multiplication
/=Division
%=Modulus
&=and
|=or
^=xor
<<=Bit shift left
>>=Bit shift right
>>>=Bit shift right(Not preserve the sign)


Comparison operators
==Returns true if the two operands are equal.
!=Returns true if the two operands are not equal.
<Returns true if the first operands is less than the second one.
<=Returns true if the first operands is less than or equal to the second one.
>Returns true if the first operands is greater than the second one.
>=Returns true if the first operands is greater than or equal to the second one.
===Returns true if they are the same type and value.
!==Returns false if they are the same type and value.
targ ? a : bReturn "a" if the conditional expression is true.


Logical operators
&&and
||or
!not


Bitwise Operators
&and
|or
^xor
~Inverts all bits
<<Bit shift left
>>Bit shift right
>>>Bit shift right(Not preserve the sign)