Name
≤ <=
Syntax
10 is less than or equal to 11 -- returns true
Synonyms
[is] less than or equal [to]
is not greater than
isn't greater than
does not come after
doesn't come after
Return value
boolean
; true
or
false
Description
This binary
operator returns true
if the left operand is less
than or equal to the right operand. You can use
date
s, integer
s,
real
s, or string
s with this
operator. If both operators are not of the same class, then
AppleScript attempts to coerce the right operand to the class of the
left operand.
Examples
100 <= 200 -- returns true 300.536 is less than or equal to 300.537 -- returns true 12 isn't greater than 11 -- returns false
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.