--- title: "Segment Conditions" slug: "segment-conditions" description: "Documents Segment Conditions: the Boolean, String, Date, and Number operators available for filtering users, with up to 3 groups and 15 conditions each." tags: ["segment operators", "segment data types"] updated: 2026-10-21T10:42:54Z published: 2026-10-21T10:42:54Z canonical: "academy.insiderone.com/segment-conditions" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Segment Conditions A segment condition includes or excludes users based on an attribute, such as city, or an event, such as a purchase. Each condition uses an operator, and the operators you can choose depend on the data type. Use **AND** when a user must meet every condition and **OR** when a user can meet any one of them. All conditions in a condition group use the same AND or OR. You choose AND or OR between groups separately, so you can build logic such as (A AND B) OR C. For examples, see [Dynamic Segments](/v1/docs/dynamic-segments). When Nested Segments is enabled for your account, add a saved dynamic segment to a new dynamic segment to reuse its rules. A Nested Segment can contain other Nested Segments. For details and limits, see [Nested Segments](/v1/docs/nested-segments). This article explains the following: - Operators at a glance - Boolean - String - Date - Number - Event conditions > [!NOTE] > You can create up to three condition groups and use up to 15 conditions per group. This applies to all types of segments. ## Operators at a glance The following table lists the operators for each data type: | Date type | Operators | | --- | --- | | Boolean | is, is not, is empty, is not empty | | Date | is, is not, is empty, is not empty (is and is not use a time range, such as in the last or between; see Date) | | Number | is more than, is less than, is more than or equal to, is less than or equal to, is, is not, is empty, is not empty | | Number Array | is exactly, does not match, is empty, is not empty | | String | contains, is exactly, does not contain, does not match, is empty, is not empty | | String Array | contains, is exactly, does not contain, does not match, is empty, is not empty | | URL | contains, is exactly, does not contain, does not match, is empty, is not empty | For attributes, you can select several values in one condition when the data type is String or an array type. For event parameters, you can select several values for every data type except Date and Boolean. To segment users on Array of Objects or Object Type data, see [Use an Array of Objects in Segmentation](/v1/docs/use-an-array-of-objects-in-segmentation), [Use Array of Objects Event Parameters in Segmentation](/v1/docs/use-array-of-objects-event-parameters-in-segmentation), and [Object Type Attributes](/v1/docs/object-type-attributes). ## Boolean | Dropdown Operator Description | Dropdown Operator | Input Options | | --- | --- | --- | | Check if the boolean value is true or false | is | True, False | | Check if the boolean value is not the selected value | is not | True, False | | Check if the boolean attribute is empty among the users | is empty | N/A | | Check if the boolean attribute is not empty among the users | is not empty | N/A | > [!NOTE] > Selecting the dropdown operator as "is not" will return both the stated values and the empty ones. For instance, when it is "is not false", you will get true input and the empty input. ## String > [!NOTE] > String values become visible in the dropdown component only if ingested in the Insider's [Unified Customer Database (UCD)](/docs/unified-customer-database-overview). | Dropdown Operator Description | Dropdown Filter | Input Options | | --- | --- | --- | | Check if the string value contains the given input | contains | Ingested(available) values to the InOne panel | | Check if the string value is exactly the same as the given input | is exactly | Ingested(available) values to the InOne panel | | Check if the string value doesn’t contain the given input | does not contain | Ingested(available) values to the InOne panel | | Check if the string attribute/event parameter value does not match the given input | does not match | Ingested(available) values to the InOne panel | | Check if the string attribute/event parameter is empty among the users | is empty | N/A | | Check if the string attribute/event parameter is not empty among the users | is not empty | N/A | ## Date | Dropdown Operator Description | Dropdown Filter | Input Options | | --- | --- | --- | | Check if the given value is in the given time range | is | Date picker or manual input | | Check if the given value is not in the given time range | is not | Date picker or manual input | | Check if the date type attribute is empty among the users | is empty | N/A | | Check if the date type attribute is not empty among the users | is not empty | N/A | For Date attributes, you can choose these time ranges for "is" and "is not": - in the last (a number of days, weeks, or months) - in the next (a number of days, weeks, or months) - on date (date picker) - between (date range) - after (date picker) - before (date picker) - today - yesterday - this month To target a date that recurs every year, such as a birthday or an anniversary, use the Annual Occasions segment. It has its own operators and time ranges. See [Standard Segments: Annual Occasions](/v1/docs/standard-segments-annual-occasions). ## Number | Dropdown Operator Description | Dropdown Filter | Input Options | | --- | --- | --- | | Check if the numeric attribute/event parameter is more than the given number | is more than | Number | | Check if the numeric attribute/event parameter is less than the given number | is less than | Number | | Check if the numeric attribute/event parameter is more than or equal to the given number | is more than or equal to | Number | | Check if the numeric attribute/event parameter is less than or equal to the given number | is less than or equal | Number | | Check if the numeric attribute/event parameter is equal to the given number | is | Number | | Check if the numeric attribute/event parameter is empty among the users | is empty | N/A | | Check if the numeric attribute/event parameter is not empty among the users | is not empty | N/A | ## Event conditions An event condition targets users by whether and how many times they performed an event within a time range. For example, you can target users who launched the app 15 times in the last month. You build event conditions in the Events segment, using default events, such as page visits, or your custom events. For details, see [Standard Segments: Events](/v1/docs/standard-segments-events). | Part of the condition | What you choose | | --- | --- | | Event | A default or custom event, such as Purchase | | Count operator | is, is not, is less than, is more than, is less than or equal to, is more than or equal to | | Number of times | A number, such as 3 | | Time range | in the last, today, yesterday, on date, between | | Unit for in the last | minutes, hours, days, weeks, months | For example, to target users who purchased at least three times in the last 30 days: 1. Select the **Purchase** event. 2. Select **is more than or equal to** and enter **3**. 3. Set the time range to **in the last** 30 days. To count only events with specific details, click **+Add Event Parameter** and add a condition on the parameter. For example, to count only purchases made in TRY or USD, add the Currency parameter and select both values. Event parameters use the operators of their data type, listed in Operators at a glance. For a Date event parameter, you choose a time range instead, such as in the last, in the next, on date, or between. ## Related - [Dynamic Segments](/dynamic-segments.md) - [First-Party Segments](/first-party-segments.md)