Skip to content

Commit 5800d91

Browse files
bobbyatsegmentmarkzegarelli
andauthored
Add info note specifying supported data types for mapping operators (#4078)
* Update actions.md * Move data into a table to improve readability Co-authored-by: markzegarelli <[email protected]>
1 parent ae914c3 commit 5800d91

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/connections/destinations/actions.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,29 @@ The following type filters and operators are available to help you build conditi
127127

128128
- **Event type** (`is`/`is not`). This allows you to filter by the [event types in the Segment Spec](/docs/connections/spec).
129129
- **Event name** (`is`, `is not`, `contains`, `does not contain`, `starts with`, `ends with`). Use these filters to find events that match a specific name, regardless of the event type.
130-
- **Event property** (`is`, `is not`, `less than`, `less than or equal to`, `greater than`, `greater than or equal to`, `contains`, `does not contain`, `starts with`, `ends with`, `exists`, `does not exist`). Use these filters to trigger the action only when an event with a specific property occurs. You can specify nested properties using dot notation, for example `context.app.name`. If the property might appear in more than one format or location, you can use an ANY statement and add conditions for each of those formats. For example, you might filter for both `context.device.type = ios` as well as `context.os.name = "iPhone OS``"`
130+
- **Event property** (`is`, `is not`, `less than`, `less than or equal to`, `greater than`, `greater than or equal to`, `contains`, `does not contain`, `starts with`, `ends with`, `exists`, `does not exist`). Use these filters to trigger the action only when an event with a specific property occurs.
131+
132+
You can specify nested properties using dot notation, for example `context.app.name`. If the property might appear in more than one format or location, you can use an ANY statement and add conditions for each of those formats. For example, you might filter for both `context.device.type = ios` as well as `context.os.name = "iPhone OS``"`
131133
The `does` `not exist` operator matches both a `null` value or a missing property.
134+
{% comment %}
135+
> info "Event property operators and supported data types"
136+
> Operators support matching on values with a **string** data type:
137+
> - `is`, `is not`, `contains`, `does not contain`, `starts with`, `ends with`
138+
>
139+
> Operators that support matching on values with either a **string** or **numeric** data type:
140+
> - `is less than`, `is less than or equal to`, `is greater than`, `is greater than or equal to`
141+
>
142+
> Operators that support matching on values with a **boolean** data type:
143+
> - `is true`, `is false`
144+
{% endcomment %}
145+
146+
The available operators depend on the property's data type:
147+
148+
| Data Type | Supported Operators |
149+
| ----------------- | -------------------------------------------------------------------------------------------- |
150+
| string | `is`, `is not`, `contains`, `does not contain`, `starts with`, `ends with` |
151+
| string or numeric | `is less than`, `is less than or equal to`, `is greater than`, `is greater than or equal to` |
152+
| boolean | `is true`, `is false` |
132153

133154
You can combine criteria in a single group using **ALL** or **ANY**. Use an ANY to “subscribe” to multiple conditions. Use ALL when you need to filter for very specific conditions. You can only create one group condition per destination action. You cannot created nested conditions.
134155

0 commit comments

Comments
 (0)