filter
![action iteration filter privew](/ent/assets/images/action-iteration-filter-f0c63e772af89464e0daafbbfec757ce.png)
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](/ent/assets/images/filter-field-iterable-29f1542daab4d5bd2a5af5a7e94320fc.png)
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](/ent/assets/images/filter-field-scope-a6f35cfa519251f9228421106ffaa8e8.png)
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](/ent/assets/images/filter-field-dothis-51b6a4a64a6839a5a1737121e98e864c.png)
Example​
1. Add item​
First, we click add item button
![action iteration filter privew](/ent/assets/images/filter-example-1-943faccdbbf26a9e980a8afa24143576.png)
![action iteration filter privew](/ent/assets/images/filter-example-2-f1e1c1c129ce2d147ed37a682259c238.png)
2. Define scope​
We define names to match the array items.
![action iteration filter privew](/ent/assets/images/filter-example-3-7ee15d36c7afa831fb30dea8905b286f.png)
3. Set Do this​
We click add action button to select action
![action iteration filter privew](/ent/assets/images/filter-example-4-878c5d9178299bb6ae994bf691f66c97.png)
First, find legth of fruit
Second, Use if to find a string with less than 6 characters.
![action iteration filter privew](/ent/assets/images/filter-example-5-7c79aeefe9dd61bc2c7a4cc52856ca0d.png)
![action iteration filter privew](/ent/assets/images/filter-example-6-e32fcc4b05e6be8ea304eb01b482c070.png)
4. Excute and look at the result​
We can run the simulation and see the array filtered by if action
![action iteration filter privew](/ent/assets/images/filter-example-7-1ec125ff3e344e8215f30aa4e94d05ee.png)