Skip to main content

Filter

Checks if each item in a list matches a boolean condition. Outputs 2 lists: matching and not matching

Holly Conrad Smith avatar
Written by Holly Conrad Smith
Updated over 3 weeks ago

Inputs

Name

Abbreviation

Type

Access

Description

List

L

Any

List

The list to filter

Predicate

P

Boolean

Item

The matching condition

Outputs

Name

Abbreviation

Type

Access

Description

Matching

M

Any

List

The list items that match the condition

Not Matching

N

Any

List

The list items that do not match the condition

Value

V

Any

Item

The current value of the filter

Index

I

Number

Item

The current index of the filter

How to:

  1. Feed in a list

    Lists have 2 or more items contained within the list object.

    You need more than one item in order to filter out anything!

  2. Start the loop

    Determine what value you want to filter the list on.

    Connect the value (V) to an operation to start the loop. Typically this would be to read a property or calculate a value. IE area, read property, etc.

  3. Define the boolean condition

    Next, add a node that gives a boolean output. IE greater than, equals, or includes.

    Connect the node from step 2 with your boolean condition node. Input your comparison value.

  4. Connect the boolean result to the Predicate (P)

The Filter node will generate 2 outputs:

A list that matches your boolean condition (true)

A list that does not match the boolean condition (false)

You can use either or both lists for different operations later in the flow

Either list may be empty if no values match the condition.

Usage Example: Filter features to specific usages

  1. Connect Read Feature Property to select all the usage values of per feature,

  2. Use Equals to match it to a usage name string value.

  3. Send the result to the Filter predicate.

The matching results return as a feature array via M, and not matching via N.

Did this answer your question?