Language Guide
CHAPTER 6
Expressions
164 Operations
(Option–equal sign)
is not
isn't
isn't equal [to]
is not equal [to]
doesn't equal
does not equal
Not equal. Binary comparison operator that results in
true if the operand to its left and the operand to its right
have different values. The operands can be of any class.
The method AppleScript uses to determine equality
depends on the class of the operands.
Class of operands: Boolean, Class Identifier, Constant,
Data, Date, Integer, List, Real, Record, Reference, String
Class of result: Boolean
>
[is] greater than
comes after
is not less than or equal [to]
isn't less than or equal [to]
Greater than. Binary comparison operator that results in
true if the value of the operand to its left is greater than
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
<
[is] less than
comes before
is not greater than or equal
[to]
isn't greater than or equal
[to]
Less than. Binary comparison operator that results in
true if the value of the operand to its left is less than
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
(Option–greater-than sign)
>=
[is] greater than or equal [to]
is not less than
isn't less than
does not come before
doesn't come before
Greater than or equal to. Binary comparison operator
that results in true if the value of the operand to its left
is greater 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
continued
Table 6-1 AppleScript operators (continued)
Operator Description