使用此函数检查字符串是否以特定片段开头。系统将返回 True 或 False 值作为输出。
此函数执行不区分大小写的检查。
语法
描述
示例
StartsWith(文本, 片段)
如果字符串以文本片段开头,则返回 true
有关参数的更多信息,请参阅下表。
参数
类型
Text
必填
Fragment
StartsWith("Blueberry”, "blue")
StartsWith("Blueberry”, "Berry")
StartsWith("Blueberry”, "Raspberry")
StartsWith("My favorite jam is Apricot”, "Apricot")