Comparison Operators
 
 
 

Use the following operators to compare two values with each other. When two values are compared using these operators, the result is 1 if the comparison is true and 0 if the comparison is false.

Operator Description
== Equal to
!= Not equal to
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
&& Boolean AND
|| Boolean OR
! Boolean NOT