Skip to main content
Version: v0.17.0

ArrayFilter

Alias:ArrayFilter, FilterArray, Filter

Output:Array<T>

Filter an array or entity stream using a conditional statement

ParameterTypeRequiredPositionSummary
Arrayarray<T>1The array to filter
Predicate
Using
T2A 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')