Syntax
INCLUDES(target, value)
Usage examples
Example 1
If the target is text, returns true if the value is a segment of the text.
Formula | INCLUDES("Hello World", "World") |
Output | true |
Example 2
Is case-sensitive. Use DOWNCASE() or UPCASE() to make it case-insensitive.
Formula | INCLUDES("Hello World", "world") |
Output | false |
Example 3
If the target is an array, returns true if the value exactly matches an item in the array.
Formula | INCLUDES(["apple", "banana", "pear"], "banana") |
Output | true |
Example 4
If the target is an array, returns false if the value does not exactly match an item in the array.
Formula | INCLUDES(["apple", "banana", "pear"], "pea") |
Output | false |
Example 5
Arrays don't need to contain text.
Formula | INCLUDES([1, 2, 3], 3) |
Output | true |
Example 6
If the target is an object, returns true if the value exactly matches a key in the object.
Formula | INCLUDES({"name": "Eoin", "age": 30}, "age") |
Output | true |
Sample Actions
Select an action to inspect
You can also click "Copy actions" and paste them in your Tines story to see how they work.