Name

begins with — initial containment

Syntax

                     string1 begins with string2
                     list1 begins with list2
                  

Description

Same as contains with the additional requirement that the second operand come first in the first operand. Records are not ordered, so they aren’t eligible operands. Synonym is starts with.

Get AppleScript: The Definitive Guide 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.