Name

does not contain

Syntax

set mybool to ({"apples","oranges","peaches"} does not contain¬ 
{"peaches"}) -- returns false

Return value

boolean; true or false

Description

does not contain, or doesn't contain, is the opposite of contains. It returns true if the list, record, or string operand does not contain the second list, record, or string operand. See contains in this chapter for a further discussion.

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.