Language Guide
CHAPTER 6
Expressions
172 Operations
Note
All string comparisons can be affected by Considering and
Ignoring statements, which allow you to selectively consider
or ignore the case of characters, as well as specific types of
characters. For more information, see “Considering and
Ignoring Statements” on page 213. ◆
Greater Than, Less Than 6
The Greater Than and Less Than operators work with dates, integers, real
numbers, and strings.
DATE
A date is greater than another date if it represents a later time. A date is less
than another date if it represents an earlier time.
INTEGER
An integer is greater than a real number or another integer if it represents a
larger number. An integer is less than a real number or another integer if it
represents a smaller number.
REAL
A real number is greater than an integer or another real number if it represents
a larger number. A real number is less than an integer or another real number if
it represents a smaller number.
STRING
A string is greater than (comes after) another string if it would appear after the
other string in an English-language dictionary. For example,
"zebra" comes after "aardvark"
and