These operators can differently check whether they are logically correct or incorrect. Let me show you what I want to say.
In the table below, sample variables are as follows:
num1 = 10
num2 = 11
Operator | Use Case |
== | num1 == num2 |
!= | num1 != num2 |
< | num1 < num2 |
> | num1 > num2 |
<= | num1 <= num2 |
>= | num1 >= num2 |