---
title: "Using string comparators in a segment"
slug: "using-string-comparators-in-a-segment"
abstract: "Describes string comparators you can use in segments in (Sitecore CDP)."
---
# 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:

| **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. |