Indexed Entry
Pick Item N Out of a List
- Entry
Sometimes you don't want a random element or a whole list - you want item number N. Indexed Entry is the node for that: give it a list and an integer, get back the entry at that position. It's the small gear that makes list-walking workflows possible, and it pairs with an incrementing counter to become a de-facto for-loop over any list you loaded.
How it works
Three inputs, one output:
string_list- the list to pick from (force-input; wire it from Get List From File or any list node).index- which position to grab. Default 0.allow_wraparound(default on) - the only interesting switch here.
Behavior with allow_wraparound on: the index is taken modulo the list length, so index = 7 on a 5-item list returns item 2. Nothing ever errors, and you can walk the list forever with an incrementing counter without worrying about bounds. With wraparound off: out-of-range indices return an empty string instead of crashing. Same no-crash guarantee, different failure shape.
The empty-string result is the thing to remember. If you're looping with wraparound off and you hit the end, you don't get a stop signal - you get "". Your downstream node has to handle that gracefully (or you check for it) or you'll be generating blank prompts. The modulo behavior also means negative indices aren't a thing here - index = -1 wraps to len - 1, which in a 5-item list gives you item 4, not a Python-style last-element... actually, careful: -1 % 5 = 4, so it does land on the last element by coincidence. Wraparound handles negatives gracefully either way.
Where you'd actually use it
- Walk a prompt list one at a time: pair with TinyBee's Incrementer or Iterate Seed, feed the
Entryinto your sampler, run the batch. - Deterministic selection: pick a specific prompt or LoRA from a list by number.
- Rotation: keep an index that counts up and let wraparound cycle your list for you.
Installing it
Standard TinyBee install - it's in 🐝TinyBee/Lists of ComfyUI-TinyBee:
- ComfyUI Manager → Install Custom Nodes → search "ComfyUI-TinyBee" → Install, then restart ComfyUI.
cd ComfyUI/custom_nodes
git clone https://github.com/TinyBeeman/ComfyUI-TinyBee
Restart. No models, no dependencies worth mentioning - this is a one-line modulo with a wrapper.
Gotchas
The empty-string-on-out-of-bounds (with wraparound off) is the main surprise, since an empty prompt silently changes your output. If you're building a loop, prefer leaving wraparound on and controlling the length yourself, or explicitly check for "" downstream. Also remember index is clamped to a non-negative integer in the UI, so you can't conveniently use negatives for "from the end." And since it re-runs every execution, it's a "compute each time" node, not a one-shot - fine for loops, irrelevant for single picks.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| index | INT | 00–18446744073709550000 | — |
| string_list | STRING | — | |
| allow_wraparoundopt | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Entry | STRING | — |