Comparison operators are used to compare two values:

Operator Name Example  
== Equal to x == y  
!= Not equal x != y  
> Greater than x > y  
< Less than x < y  
>= Greater than or equal to x >= y  
<= Less than or equal to x <= y



Practice Excercise Practice now