Language Guide
CHAPTER 6
Expressions
Operations 165
(Option–less-than sign)
<=
[is] less than or equal [to]
is not greater than
isn't greater than
does not come after
doesn't come after
Less than or equal to. Binary comparison operator that
results in true if the value of the operand to its left is
less than or equal to the value of the operand to its right.
Both operands must evaluate to values of the same class.
If they don’t, AppleScript attempts to coerce the operand
to the right of the operator to the class of the operand to
the left. The method AppleScript uses to determine
which value is greater depends on the class of the
operands.
Class of operands: Date, Integer, Real, String
Class of result: Boolean
start[s] with
begin[s] with
Starts with. Binary containment operator that results
in true if the list or string to its right matches the
beginning of the list or string to its left. Both operands
must evaluate to values of the same class. If they don’t,
AppleScript attempts to coerce the operand to the right
of the operator to the class of the operand to the left.
Class of operands: List, String
Class of result: Boolean
end[s] with Ends with. Binary containment operator that results in
true if the list or string to its right matches the end of
the list or string to its left. Both operands must evaluate
to values of the same class. If they don’t, AppleScript
attempts to coerce the operand to the right of the
operator to the class of the operand to the left.
Class of operands: List, String
Class of result: Boolean
contain[s] Contains. Binary containment operator that results in
true if the list, record, or string to its right matches any
part of the list, record, or string to its left. Both operands
must evaluate to values of the same class. If they don’t,
AppleScript attempts to coerce the operand to the right
of the operator to the class of the operand to the left.
Class of operands: List, Record, String
Class of result: Boolean
continued
Table 6-1 AppleScript operators (continued)
Operator Description