Skip to main content
?

filter

action iteration filter privew

Summary​

Filters items in an array using a given logic

Description​


Fields​

iterable​

An array which will have its items filtered.

action iteration filter privew

The logic to perform for each item in the array. A 'truthy' value will cause an item to be kept in the resulting array. False and null values are removed.

scope​

Define the name of an item in that array.

action iteration filter privew

The scope determines the name of the scope that will contain the item index and item value to be used inside the logic. Similar to using the request/input/variable scopes, this scope is a dedicated space for the item information.

do this​

Execute the filtering action

action iteration filter privew

Example​

1. Add item​

First, we click add item button

action iteration filter privewSecond, we insert value to itemaction iteration filter privew

2. Define scope​

We define names to match the array items.

action iteration filter privew

3. Set Do this​

We click add action button to select action

action iteration filter privew

First, find legth of fruit
Second, Use if to find a string with less than 6 characters.

action iteration filter privewaction iteration filter privew

4. Excute and look at the result​

We can run the simulation and see the array filtered by if action

action iteration filter privew