STARTS_WITH

Description

STARTS_WITH returns true if a string begins with the given prefix, and false otherwise.

Syntax

STARTS_WITH(string, prefix)

Returns: true or false.

Example

p is Person
STARTS_WITH(p.phone_number, '+41')

This returns true if the person's phone number starts with the Swiss country code +41.

Last updated

Was this helpful?