Artithmetic

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Division
%Modulus(remainder of division)
++Increment
--Decrement

Assignment

OperatorDescription
=Assign
+=Add and assign. For example, x+=y is the same as x=x+y.
-=Subtract and assign. For example, x-=y is the same as x=x-y.
*=Multiply and assign. For example, x*=y is the same as x=x*y.
/=Divide and assign. For example, x/=y is the same as x=x/y.
%=Modulus and assign. For example, x%=y is the same as x=x%y.

Comparison

OperatorDescription
==Is equal to
===Is identical (is equal to and is of the same type)
!=Is not equal to
!==Is not identical
>Greater than
>=Greater than or equal to
<Less than
<=Less than or equal to

Logical/boolean

OperatorDescription
&&And
||Or
!Not

String

OperatorDescription
=Assignment
+Concatenate (join two strings together)
+=Concatenate and assign


HOME