Comparison Operators

Comparison operators are used to compare two expressions.

  expr1 operator expr2

Remarks

The following contains a list of the comparison operators and the conditions that determine the result.

</tr> </table> ### See Also [Expression Operators and their Precedence](Expression_Operators_and_their_Precedence.html)

Operator </td>

Meaning True If False If
< Less Than expr1<expr2 expr1>=expr2
<= Less Than or Equal To expr1<=expr2 expr1>expr2
> Greater Than expr1> expr2 expr1<=expr2
>= Greater Than or Equal To expr1>=expr2 expr1<expr2
= Equal To expr1=expr2 expr1<>expr2
<> Not Equal To expr1<>expr2 expr1=expr2