Starting with

Learn how to check if a string starts with a specific prefix.

This operator checks if a string begins with another string. The test is case-sensitive, meaning that the strings must match exactly, including capitalization.

Syntax

The basic syntax for this operator is:

with /*<name>*/ starting with /*<value>*/

The negation of this operation can be expressed as:

with /*<name>*/ not starting with /*<value>*/

Parameters

These are the supported parameters:

name

The name of the event property to check.

value

The string value to compare against.

Examples

Check if a campaign name starts with a specific term:

user has viewed campaign with name starting with "Optimize"
Try in Playground

Or to check the opposite:

user has viewed campaign with name not starting with "Optimize"
Try in Playground