Filter List using a Boolean Check
Filters a list of objects by a true/false field, keeping the items that equal (or do not equal) a given boolean value. Use it to split a list based on a yes/no flag.
What it does
- Compares the boolean value at the given JSON path in each item against your comparison value.
- Uses the chosen operator (equals or not equals).
- Returns the filtered list and the number of items in it.
Inputs
| Name | Type | Description |
|---|---|---|
| Comparison Operator: equals/not equals | String | How to compare the values Possible values: equals, not equals. |
| Items to Filter | list | List of objects to filter |
| JSON Path | String | JSON path in the item to the value for comparison. |
| Comparison Value | Boolean | Value to compare the path value against |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Successfully run the filter |
| Filtered List | list | filtered list of items satisfying the comparison |
| Number of Items | Number | number of items in the filtered list |
Notes
- The JSON path points to the boolean field inside each item to compare.