FILTER

Returns all element in the array for which the lambda returns true.

Syntax 

FILTER(array, LAMBDA(item, [expr]))

Usage examples 

Example 1

Input

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

Formula

FILTER(my_array, LAMBDA(item, item > 5))

Output

1
[
2
6,
3
7,
4
8,
5
9,
6
10
7
]

Sample Actions 

Event Transform
FILTER
Event Transform
My Action

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?