Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Arithmetic OperatorsDescriptionExample
+Addition2 + 1
-Subtraction2 - 1
*Multiplication3 * 2
:

Division

6 / : 2
Unary OperatorDescriptionExample
+Indicate a positive number+2
-Negate a number-2
++
Increment
x++
--Decrementx--
Boolean OperatorDescriptionExample
==Equal tox == 2
!Negate a boolean value! (x == 2)==Equal tox == 2
!=Not equal tox != 2
>Greater thanx > 2
>=Greather than or equal tox >= 2
<Less thanx < 2
<=Less than or equal tox <= 2
&&Conditional-ANDx > 0 && x < 9
||Conditional-ORx < 0 || x > 9