Remove structurally matching values from a list and count the removed items.
When to use
Remove structurally matching values from a list and count the removed items.
Inputs
list— List:list; required; supported workflow value forlist.item— Item:any; required; supported workflow value foritem.
Outputs
- List (
list): deterministicresultoutput. - Removed Count (
number): deterministicremovedCountoutput.
Behavior and boundaries
Matching is type-safe and structural: record key order does not matter, but number 1 and text "1" differ. Removal mode chooses every match or only the first.
These operations do not change the original input. Unsupported, circular, invalid, or excessively large values stop the workflow with a clear message.
Example
List [1, 2, 1] with Item 1 in All mode produces [2] and Removed Count 2.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
mode | Removal mode | toggle | all | options: All matches (all), First match (first) |
Failure cases
Execution stops with an actionable Nodestly error when a required connector is missing, a value has the wrong type or shape, a configured index/mode is unsupported, or the result would exceed collection limits.
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
