Intempt Docs
GuidesGetting Started

Data types

Intempt supports six data types for attributes: text, number, date, boolean, array, and object. Each data type has its own set of filter operators.

Supported data types

Intempt supports six data types for attributes: text, number, date, boolean, array, and object. The data type an attribute has determines which operators you can use to filter and segment on it in Managing attributes and across Intempt.

Text

  • Alphanumeric value, e.g. Plan Type = "Free", Artist Name = "Bruno Mars"

  • Intempt treats any attribute value that doesn't match another data type as text.

Text operators

Operator NameDescription
isChecks if the attribute exactly matches a value.
is notChecks if the attribute does not match a value.
containsSearches within the attribute for a value.
does not containConfirms the attribute does not include a value.
has any valueValidates that the attribute has any value.
has no valueChecks if the attribute has a blank or null value.

Number

  • Numeric (integer or decimal) value, e.g. Cost = 15.00, Quantity = 5

Number operators

Operator NameDescription
equalsChecks if the attribute is equal to a specified number.
doesn't equalChecks if the attribute is not equal to a specified number.
is greater thanVerifies if the attribute is greater than a specified number.
is less thanVerifies if the attribute is less than a specified number.
is greater than or equalChecks if the attribute is greater than or equal to a specified number.
is less than or equalChecks if the attribute is less than or equal to a specified number.
has any valueValidates that the attribute has any numerical value.
has no valueChecks if the attribute has no assigned value or is null.

Date

  • A timestamp value, e.g. Last Purchase, Last Login.

Date operators

Operator NameDescription
sinceChecks if the date occurred on or after the specified date.
beforeChecks if the date occurred before the specified date.
in the lastChecks if the date occurred within the specified time frame up to now.
betweenChecks if the date falls within a specified range of dates.

Boolean

  • Intempt treats an attribute as a boolean if the value is either the JSON constant true or false, e.g. Favorited = true, Bookmarked = false.

Boolean operators

Operator NameDescription
is trueIndicates the attribute is true.
is falseIndicates the attribute is false.

Array

  • A list of values as a JSON array, e.g. Favourite Genres = ["Folk","Alternative"] or Favourite Numbers = [1, 5, 10]

  • An array can also hold objects instead of plain values, e.g. Teams = [{"name":"Growth","id":"1"}, {"name":"Sales","id":"2"}]. Each object in the array shares the same set of fields.

  • For an array of text, number, or boolean values, pick any in the list or all in the list, then apply the matching operator for that value's own data type (Text, Number, or Boolean) to check each element.

  • For an array of objects, pick any in the list or all in the list, then filter on the object's own fields. Each field uses the operators for its own data type. For example, on the Teams array above, you'd filter where name is "Growth".

Array operators

Operator NameDescription
any in the listChecks if any of the specified values are present in the attribute array.
all in the listChecks if all of the specified values are present in the attribute array.

Object

  • Arbitrarily nested JSON key-value pairs, e.g. Company = {"name": "Intempt", "plan": "Enterprise"}

  • An object doesn't have its own operator set. You filter on its individual fields instead, and each field uses the operators for its own data type: a text field uses Text operators, a number field uses Number operators, and so on.

Use cases

  1. Text. Segment on Plan Type to target only "Enterprise" customers with a renewal journey.

  2. Number. Filter where Lifetime value is greater than 500 to build a high-value customer segment.

  3. Date. Filter where Trial Started is in the last 7 days to trigger an onboarding journey.

  4. Boolean. Filter where Favorited is true to build a segment of users who saved an item.

  5. Array. Filter where Teams any in the list has name "Growth" to reach everyone on that team.

  6. Object. Filter on a field inside an object attribute, like Company's plan field, using the Text operators.

On this page