1. Docs
  2. Formulas
  3. Functions

DIFFERENCE

Returns an array of items that appear in the first array but not in the second array

Categories: Arrays

Syntax

DIFFERENCE(array1, array2)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"array1": [
4
1,
5
2,
6
3
7
],
8
"array2": [
9
1,
10
2
11
]
12
}
13
}

Formula

DIFFERENCE(my_action.array1, my_action.array2)

Output

1
[
2
3
3
]

Sample actions

Event Transform
my action
Event Transform
DIFFERENCE

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?