Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP
            • String comparators
            • Number comparators
            • Date comparators
            • Boolean comparators
            • Other comparators
        • Interrogating your organization's data
        • Edit, move, or delete a filter group
        • Apply a set limit filter
        • Calculate segment audience size
    • Segment best practices
    • Using segments
    • View segment usage and details
    • Understanding segment calculations
  • Data browser
  • Glossary
  1. Using comparators in a segment
  1. Sitecore CDP
  2. Introduction to batch segmentation
  3. Create and add rules to a segment in Sitecore CDP
  4. Using comparators in a segment
  5. Using string comparators in a segment

Using string comparators in a segment

You can use a string comparator to compare full or partial string values. You can also use a string comparator to verify that a string is present.

The following table describes string comparators you can use when creating segments:

String comparator

Description

is equal to

Verifies that the value is the specified string.

is not equal to

Verifies that the value is not the specified string.

includes any of

Verifies that the value contains any of the specified string values.

does not include any of

Verifies that the value does not contain any of the specified string values.

contains

Verifies that the value contains the specified string.

does not contain

Verifies that the value does not contain the specified string.

starts with

Verifies that the value starts with the specified string.

does not start with

Verifies that the value does not start with the specified string.

ends with

Verifies that the value ends with the specified string.

does not ends with

Verifies that the value does not end with the specified string.

is null

Verifies that the value is null.

is not null

Verifies that the value is not null.

If you have suggestions for improving this article, let us know!

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use