Language Guide
CHAPTER 6
Expressions
166 Operations
does not contain
doesn't contain
Does not contain. Binary containment operator that
results in true if the list, record, or string to its right
does not match 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
is in
is contained by
Is contained by. Binary containment operator that results
in true if the list, record, or string to its left matches
any part of the list, record, or string 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 left of the operator to the class of the operand to
the right.
Class of operands: List, Record, String
Class of result: Boolean
is not in
is not contained by
isn't contained by
Is not contained by. Binary containment operator that
results in true if the list, record, or string to its left does
not match any part of the list, record, or string 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 left of the operator to the class of the
operand to the right.
Class of operands: List, Record, String
Class of result: Boolean
* Multiply. Binary arithmetic operator that multiplies the
number to its left and the number to its right.
Class of operands: Integer, Real
Class of result: Integer, Real
+ Plus. Binary arithmetic operator that adds the number or
date to its left and the number or date to its right. Only
integers can be added to dates. AppleScript interprets
such an integer as a number of seconds.
Class of operands: Date, Integer, Real
Class of result: Date, Integer, Real
continued
Table 6-1 AppleScript operators (continued)
Operator Description