This operator is used to compare two values. The result is ALWAYS True or False.
Key Concepts
Operator | Meaning | Example | Result |
---|---|---|---|
== | Equal to | 5 == 5 | True |
!= | Not Equal to | 5 != 5 | False |
> | Greater than | 5 > 3 | True |
< | Less than | 5 < 3 | False |
>= | Greater than or equal to | 5 >= 5 | True |
<= | Less than or equal to | 5 <= 3 | False |