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 <
.
#
Argumentsvalue1
is any data type.value2
is any data type.
#
Return valueReturn value type is boolean.
#
Examples#
> (greater than) and < (less than)(value1) > (value2)
- returns true ifvalue1
is greater thanvalue2
.(value1) < (value2)
- returns true ifvalue1
is less thanvalue2
.
#
Argumentsvalue1
andvalue2
are one of the following data types:- any numeric data type
char
date
timestamp
symbol
string
#
Description>
and <
can be used in combination with =
for the following comparison:
>=
- greater than or equal to<=
- less than or equal to
#
Return valueReturn value type is boolean.
#
Examples#
<> or != (not equal to)(value1) <> (value2)
- returns true if value1
is not equal to value2
.
!=
is an alias of <>
.
#
Argumentsvalue1
is any data type.value2
is any data type.
#
Return valueReturn value type is boolean.