Ino List Get First
Grab the first item off a list without breaking the rest of it
- items
- item
- success
- length
Somewhere between "I have a list" and "I need a single item" there's always a gap in ComfyUI. Ino List Get First is the one-node bridge: hand it a list of anything, and it hands you the first item, plus a couple of useful extras. It's the kind of tiny utility you don't think you need until a workflow demands "just take the first image/prompt/model from that batch" and you realize there's no obvious stock way to do it.
It's part of ComfyUI Ino Nodes (nobandegani/ComfyUI-InoNodes), the 125+-node V3-schema pack, and lives in its InoListHelper category alongside list-making, list-measuring, and list-append tools.
How it works
One input, three outputs, zero settings. The node takes items (any list type), pulls the item at index 0, and returns:
item- the first value, whatever type it is.success-Trueif there was something to grab,Falseif the list was empty.length- the size of the list you fed it, which is a sneaky useful extra when you need the count anyway.
That success output is the part that makes this automation-friendly. An empty list is a totally normal thing to encounter mid-workflow - maybe a folder scan found nothing, maybe an upstream node produced zero results. Instead of the node erroring out and killing your run, you get success: False with item empty, and you can route on that boolean to handle the empty case gracefully.
When you'd use it
Classic patterns:
- Batch → single. A node outputs a batch of images; you want just the first one for a preview or a side path.
- Config handling. First prompt in a prompt list becomes the "hero" prompt while the rest go through a variation loop.
- Empty-list guards. Pair the
successoutput with a switch node so an empty result takes a fallback branch instead of producing garbage.
The one thing to remember
This returns the first item by itself, not wrapped in a list. If your downstream node expects a list (most batch-processing nodes do), you'll want to wrap it back up - the pack's Ino Make Any List with a single slot does the job. And if you need the last item instead, the same category has Ino List Get Last; the pack also has an indexed Ino List Get Item for anything in between.
Installing it
ComfyUI Ino Nodes is a one-pack install:
- ComfyUI Manager (easiest): search for "ComfyUI Ino Nodes", install, restart.
- Manual:
Then restart ComfyUI.cd ComfyUI/custom_nodes git clone https://github.com/nobandegani/ComfyUI-InoNodes.git cd ComfyUI-InoNodes pip install -r requirements.txt
Requires inopyutils and a current ComfyUI (V3 schema throughout). It's a small, under-the-radar pack, but if you've ever wanted to just take the first one, this node is the clean answer.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| items | * | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| item | * | — |
| success | BOOLEAN | — |
| length | INT | — |