×

Filter List

iOS 15 +

Notes

Choose which items to keep or discard in the input list based on a condition. Supports a list of text and numbers.

Syntax

filterList(list: <#Array#>, shouldKeep: <#Boolean#>, condition: <#Enumeration (FilterCondition)#>, matchText: <#String (Allows Variables)#>, caseSensitive: <#Boolean#>, shouldLimit: <#Boolean#>, limit: <#Integer#>)

Example

filterList(list: ["Awesome Item", "Awesome Item", "Awes0me Item 2"], shouldKeep: false, condition: contains, matchText: "Awesome", caseSensitive: true, shouldLimit: true, limit: 1)