|
Operator
|
Name
|
Description
|
Example
|
Result
|
|
>
|
arithmetic greater-than |
Compares whether left value is greater
than right value. |
20>30 |
false |
|
<
|
arithmetic less-than |
Compares whether left value is smaller
than right value. |
20<30 |
true |
|
>=
|
arithmetic greater-than or equal to |
Compares whether left value is equal to
or greater
than right value. |
30>=20 |
true |
|
<=
|
arithmetic less-than or equal to |
Compares whether left value is equal to
or less than
right value |
20<=20 |
true |
|
==
|
arithmetic equality |
Compares whether left value is equal to right value. |
20==30 |
false |
|
!=
|
arithmetic inequality |
Compares whether left value is not equal
to right value. |
20!=30 |
true |
|
gt
|
string greater-than |
Compares whether left value comes alphabetically
after right
value. |
"fat" gt "hat" |
false |
|
lt
|
string less-than |
Compares whether left value comes alphabetically
before right
value. |
"fat" lt "hat" |
true |
|
ge
|
string greater-than or equal to |
Compares whether left value is equal to
or comes alphabetically
after right value. |
"pat" ge "pat" |
true |
|
le
|
string less-than or equal to |
Compares whether left value is equal to or
comes alphabetically
before right value. |
"sat" le "pat" |
false |
|
eq
|
string equality |
Compares whether left value is exactly the same
as the right
value. |
"bob" eq "bob1" |
false |
|
ne
|
string inequality |
Compares whether left value is at all different
from the right
value. |
"bob" ne "bob1" |
true |