Comparison operators
This page describes the available operators to assist with comparison operations.
If string or char values are used in the input, they are converted to int
using the ASCII Table for comparison.
= (equal to)#
(value1) = (value2) - returns true if the two values are the same.
= can be used with > or <.
Arguments#
value1is any data type.value2is any data type.
Return value#
Return value type is boolean.
Examples#
> (greater than) and < (less than)#
(value1) > (value2)- returns true ifvalue1is greater thanvalue2.(value1) < (value2)- returns true ifvalue1is less thanvalue2.
Arguments#
value1andvalue2are one of the following data types:- any numeric data type
chardatetimestampsymbolstring
Description#
> and < can be used in combination with = for the following comparison:
>=- greater than or equal to<=- less than or equal to
Return value#
Return value type is boolean.
Examples#
<> or != (not equal to)#
(value1) <> (value2) - returns true if value1 is not equal to value2.
!= is an alias of <>.
Arguments#
value1is any data type.value2is any data type.
Return value#
Return value type is boolean.