ArrayFilter
Alias:ArrayFilter
, FilterArray
, Filter
Output:Array<T>
Filter an array or entity stream using a conditional statement
Parameter | Type | Required | Position | Summary |
---|---|---|---|---|
Array | array<T> | ✔ | 1 | The array to filter |
Predicate Using | T | ✔ | 2 | A function that determines whether an entity should be included. |
Examples​
Example 1​
SCL​
ArrayFilter [('value': 'A'), ('value': 'B'), ('value': 'C')] Predicate: (<>['value'] != 'B')
Expected Output​
[('value': "A"), ('value': "C")]
Example 2​
SCL​
Filter <MyCsvFile> Using: (<>['column1'] == 'TypeA')