Skip Headers
Previous
Previous
 
Next
Next

Simple Comparison Conditions

Comparison conditions compare one expression with another.

You can use these comparison operators:

Simple Comparison Operators

Operator Description

>

Greater than

>=

Greater than or equal to

<


Less than

<=


Less than or equal to

=


Equal to

!= ^=<>

Not equal to


Syntax

expr { > | >= | < | <= | = | != | ^= | <> } expr 

Arguments

expr can be any expression.

Examples

5 > 3 is true, 4 != 5 is true, 6 >= 9 is false.