STARTS_WITH

Returns true if the field or expression begins with the specified text, otherwise returns false.

Sample Usage

STARTS_WITH(Campaign, "Summer")

Syntax

STARTS_WITH(X, text)

Parameters:

  • X - a field or expression of any type.
  • text - the text to find within X.

Notes

  • text is case-sensitive.
  • This function is equivalent to REGEXP_MATCH(X, "^text.*").

Examples

Example formula Data in Output
STARTS_WITH(Campaign, "Summer") Summer Sale true
STARTS_WITH(Campaign, "Sale") Summer Sale false

Related resources

Was this helpful?
How can we improve it?