OPERATORS

Arithmetic Operators

OperatorTypeDescription
+AddCalculates the sum of two numbers.
-SubtractCalculates the difference between two numbers.
*MultiplyCalculates the product of two numbers.
/DivideCalculates the quotient of two numbers.
%ModCalculates the remainder of two numbers.

Comparison Operators

OperatorTypeDescription
==EqualEvaluates if two values are equal.
!=Not EqualEvaluates if two values are different.
<Less ThanEvaluates if the first value is smaller than the second.
>Greater ThanEvaluates if the first value is larger than the second.
<=Less Than or EqualEvaluates if the first value is smaller or equal to the second.
>=Greater Than or EqualEvaluates if the first value is larger or equal to the second.

Logical Operators

OperatorTypeDescription
&&ANDEvaluates to TRUE if both conditions are true.
||OREvaluates to TRUE if at least one condition is true.

Other Operators

OperatorTypeDescription
()ParenthesesDefines the order in which expressions are evaluated.
&ConcatenateJoins two or more strings together into a single string.