Nodes/ComfyUI Inspire Pack/Drop Items (Inspire)
ComfyUI Node Runs on cloud

Drop Items (Inspire)

The break statement for Inspire's Foreach loops

By ltdrdata·Created 3 years ago·Updated 9 months ago· 805
Drop Items (Inspire)
  • item_list
  • ITEM_LIST

This is a niche one, and honestly if you don't already know you need it, you probably don't. Drop Items (some builds label it "Drop List") is a control-flow node for Inspire's Foreach loop system. It empties an ITEM_LIST. That's it. The point isn't the emptying - it's what the emptying does: when an emptied list reaches the loop's end node, the loop stops. It's a break statement dressed up as a graph node.

To make sense of it you need the loop it belongs to. The Inspire Pack ships a small iteration kit - Worklist To Item List bundles a batch into a single ITEM_LIST, then ▶Foreach List and Foreach List◀ pull items out one at a time and run the sub-graph between them once per item. It's ComfyUI's way of doing "for each of these, do this," which the base app doesn't really give you cleanly.

How it works

Per the pack's own docs: Drop Items removes all items from the ITEM_LIST, and if that emptied list is passed to Foreach List End, the process terminates immediately. So the pattern is conditional early-exit - somewhere inside the loop you decide "we're done" (a match found, a threshold hit), route the working list through Drop Items, and feed that into the loop's end node instead of the normal remaining-items list. The loop sees nothing left to do and stops.

Without something like this, an Inspire Foreach loop runs to the end of its list every time. Drop Items is how you bail out partway.

The inputs and outputs

Dead simple:

  • item_list (ITEM_LIST) - the list to empty.
  • Output is an ITEM_LIST (a wildcard type), which is now empty. You wire it where the loop-end node expects its remaining list.

There are no options, no counters, nothing to tune. It does one thing.

How to install it

ComfyUI Manager is the path of least resistance: Install Custom Nodes → search ComfyUI Inspire Pack → install → restart. Or clone it:

cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack

Then restart. Inspire Pack is Dr.Lt.Data's work - the ComfyUI Manager author - so it's solid and low-drama to install. No model downloads for this node.

Common issues

The one that trips people up is wiring Drop Items in isolation and expecting something visible to happen. It has no effect on its own - it only means anything as part of a Foreach loop, specifically feeding the emptied list into Foreach List End. If your loop isn't stopping when you think it should, check that the emptied list is what actually reaches the end node; if the original non-empty remaining-list is still connected there, the loop keeps going regardless. And if you're not building iterative sub-workflows at all, this node has nothing to do with you - it's purely loop plumbing.

CategoryInspirePack/List

Inputs (1)

NameTypeDefaultDescription
item_listITEM_LISTDirectly connect the output of ForeachListBegin, the starting node of the iteration.

Outputs (1)

NameTypeDescription
ITEM_LIST*This is the final output value.