Language Guide
CHAPTER 6
Expressions
168 Operations
Operators That Handle Operands of Various Classes 6
Many of the operators can handle operands of a variety of classes. The
following sections describe how the Equal, Is Not Equal To, Greater Than,
Less Than, Starts With, Ends With, Contains, Is Contained By, and
concatenation (&) operators behave with different classes of operands.
Equal, Is Not Equal To 6
The Equal and Is Not Equal To operators can handle operands of any class.
OPERANDS OF DIFFERENT CLASSES
Two expressions of different classes are not equal.
BOOLEAN EXPRESSION
Two Boolean expressions are equal if both of them evaluate to true or if
both evaluate to false. They are not equal if one evaluates to true and the
other to false.
not Not. Unary logical operator that results in true if the
operand to its right is false, and false if the operand
to its right is true.
Class of operand: Boolean
Class of result: Boolean
[a] ( ref [to] | reference to ) A Reference To. Unary operator that causes AppleScript
to interpret the value to its right as a reference instead of
getting its value. For more information about the A
Reference To operator, see “The ‘A Reference To’
Operator” on page 153.
Class of operand: Reference
Class of result: Reference
Table 6-1 AppleScript operators (continued)
Operator Description