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

NameTypeDescription
Comparison Operator: equals/not equalsStringHow to compare the values Possible values: equals, not equals.
Items to FilterlistList of objects to filter
JSON PathStringJSON path in the item to the value for comparison.
Comparison ValueBooleanValue to compare the path value against

Outputs

NameTypeDescription
SuccessBooleanSuccessfully run the filter
Filtered Listlistfiltered list of items satisfying the comparison
Number of ItemsNumbernumber of items in the filtered list

Notes

  • The JSON path points to the boolean field inside each item to compare.