Comparison operators (=, <>, >, <, >=, <=)

Can be used to perform comparison operation like equalto, not equalto, greater than, less than, greater than equalto and less than equalto.

Syntax

= value1 OPERATOR value2

Arguments

value1

A value to be operated upon. The value can be specified as an integer (e.g., 37), a decimal value (e.g., 37.48), a string (e.g., “test”), a character(‘a’) or as the value of a variable (e.g, UnitPrice)

value2

A value to be operated upon. The value can be specified as an integer (e.g., 37), a decimal value (e.g., 37.48), a string (e.g., “test”), a character(‘a’) or as the value of a variable (e.g, UnitPrice)

Examples

Example

Returns

= UnitPrice <> 10

The Boolean value True if the UnitPrice is not equal to 10.

= UnitPrice = 10

The Boolean value True if the UnitPrice is equal to 10.

= UnitPrice > 15

The Boolean value True if UnitPrice is greater than 15.