Comparison Operators
These are operators that compare two values and return a Boolean result.
| Name | Maths | Operator | Example | Note |
|---|---|---|---|---|
| Equal to | == |
x == y |
Allows for type coercion. | |
| Not equal to | != |
x != y |
Allows for type coercion. | |
| Greater than | > |
x > y |
||
| Less than | < |
x < y |
||
| Greater or equal | >= |
x >= y |
||
| Less or equal | <= |
x <= y |
^comparison-ops