The comparison (or relational) operators work on two values or arrays. Comparisons can be done using the following operators:

== Equal (Remember a single '=' is used for assignment)
!= Not equal
< Less than
> Greater than
<= Less than or equal
>= Greater than or equal

Each comparison operator returns a Boolean value true or false (1 or 0) based on the comparison result. The returned value can then be used, for example, in a conditional statement.