Name
<
Syntax
10 is less than 11 -- returns true
Synonyms
[is] less than
comes before
is not greater than or equal [to]
isn't greater than or equal [to]
Description
These operators, either the symbols or human-language versions,
return true
or false
from the
expression where they are used. You can use date
s,
integer
s, real
s, or
string
s with these operators. Both operands should
be of the same class. If they are not then AppleScript tries to
coerce the right operand to the class of the left operand.
Scripters who swear by AppleScript’s plainspokenness
can stick with is
less than
,
comes before
, and their other alternatives (as
opposed to just “<” ).
Examples
35.29 is less than 35.3 -- returns true "animal" < "boy" -- returns true date "1/1/1970" comes before date "1/1/2000"-- returns true.
Get AppleScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.