Use comparison operators to measure values against each other. The data types of compared values must match, otherwise the application will return an error. The result of a comparison operation is a Boolean, true or false.
Operator | Name | Description | Applicable Data Types | Return Data Type | Example |
---|---|---|---|---|---|
== | Equal | Tests if two values are equal. | All | Boolean |
|
!= | Does Not Equal | Tests if two values are not equal. | All | Boolean |
|
> | Greater Than | Tests if one value is greater than another. | All | Boolean |
|
>= | Greater Than or Equal To | Tests if one value is greater than or equal to another | All | Boolean |
|
< | Less Than | Tests if one value is less than another. | All | Boolean |
|
| Less Than or Equal To | Tests if one value is less than or equal to another. | All | Boolean |
|