Convert to List
Wrap anything into a Python list, mainly for loop nodes
- input1
- LIST
Every graph builder eventually runs into ComfyUI's typing system pushing back - a node upstream hands you an INT or a STRING, and something downstream flatly demands a LIST. ConvertAny2List is the fix: point it at whatever value you've got and it comes back out as a Python list.
It's one of the conversion utilities in ComfyUI-LogicUtils, a pack by GitHub user aria1th - the trainer publicly known as AngelBottomless, best known for training Illustrious XL rather than for node development. LogicUtils reads like a personal toolkit that got open-sourced: general glue for people building programmatic workflows - loops, batching, data reshaping - rather than another sampler or checkpoint loader. It's genuinely one of the pack's more useful nodes in practice: a r/comfyui guide to building loop-based workflows (using Easy-Use's for-loop system) leaned on this exact conversion family, describing the surrounding LogicUtils node set as having "very little documentation, and not a lot of use-cases for most of it" outside of that context - so if you're not building a loop or iteration structure, you likely don't need this node at all.
How it works
input1 accepts anything - it's typed *, ComfyUI's wildcard, so it'll take a wire from any other node's output. Whatever value shows up gets wrapped or coerced into a Python list and passed out as the node's LIST-typed output. That output type is the point: loop and iteration-style custom nodes in ComfyUI (the kind built for running part of a graph repeatedly over a sequence of values) generally expect a LIST to iterate over, and most standard node outputs aren't natively typed that way. This node is the bridge.
Because the pack doesn't document the exact coercion rule for every possible input type, treat it empirically - connect it, run it, and confirm the resulting list looks like what you expected before building further logic on top of it.
The inputs and outputs that matter
input1(*, default0) - the sole input, accepts any type.- Output: one
LIST- feed it to whatever loop, iteration, or batching node needs that type.
How to install it
Through ComfyUI Manager: search ComfyUI-LogicUtils, install, restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/aria1th/ComfyUI-LogicUtils
Restart ComfyUI afterward. No models required - it's a pure Python type conversion, nothing that touches a checkpoint or needs a download. The README notes an opt-in auto-install hook (COMFYUI_LOGICUTILS_AUTO_INSTALL=1, with COMFYUI_LOGICUTILS_SKIP_INSTALL=1 to force it off) for heavier parts of the pack; this node doesn't need it.
Common issues & troubleshooting
The workflow you copied references a node or a slightly different setup than what installed. The LogicUtils node set has shifted over time - new nodes have landed via pull request after workflows referencing them were already circulating on Reddit. If a shared workflow expects something that isn't in your installed copy, check the GitHub repo directly for what's currently merged rather than assuming Manager's listing is complete.
Downstream node still complains about the type. Confirm it actually wants a LIST and not a TUPLE or SET - this pack has a separate conversion node for each of those, and it's easy to grab the wrong one when you're moving fast.
You're not sure you need this at all. If nothing in your graph is doing loop-style iteration or explicitly demanding a LIST type, you probably don't - this is a narrow fix for a specific type mismatch, not a general utility to sprinkle everywhere.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input1 | * | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |