min
The smallest item in your LIST, without the crash
- list
- min_value
The node you reach for when a list gets long
If you've built up a LIST of numbers - seeds, CFG values, prompt weights, whatever - at some point you want to know which one is smallest. This node just tells you. It's the Python min() function wearing a ComfyUI hat, and it's one of the few "analysis" nodes in the Basic data handling pack that actually hands you data back rather than reshaping it.
One thing to get straight up front: this works on the pack's LIST type, which is a real Python list passed around as a single variable. It is not ComfyUI's native data list where each item flows through the graph individually. If someone hands you a node expecting "data list" inputs, this won't plug in directly - convert with "convert to Data List" first.
How it works
Under the hood it calls min(list) and hands back the result. Nothing fancy, but the author did the beginner-proofing for you: if the LIST is empty or the items can't be compared (say you mixed ints and strings), it returns None instead of throwing a red-border error. That's genuinely nice - a failed min() in a raw Python node would just crash your run.
Two catches worth knowing. First, None propagates silently, so if a downstream node suddenly gets a weird value, check whether your LIST is empty. Second, "comparable" means same kind of thing: a list of all numbers or all strings sorts fine, a list of both won't.
Inputs and outputs
Only one input matters:
- list (LIST) - the list you're scanning.
Output is a single min_value (*), which is whatever type the items were - an INT if your list held ints, a STRING if it held strings. Wire it into a display node (the pack has "show string"/"display" style utilities) to see it, or into whatever downstream node wants that value.
Installing it
This ships in the Basic data handling pack by StableLlama. That's the same StableLlama who posts long, genuinely useful model writeups on r/StableDiffusion - his Flux Klein 9B conclusions thread was one of the better reads of that release cycle. This pack is a different flavor: plain Python utilities with zero dependencies (the pyproject literally declares an empty dependency list), no models, no API keys, nothing on the GPU.
Install via ComfyUI Manager by searching "Basic data handling", or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/StableLlama/ComfyUI-basic_data_handling
Restart ComfyUI and you'll find this node under Basic/LIST in the node browser.
Troubleshooting
The main thing people hit is getting None out and assuming the node is broken. It isn't - your list was empty or mixed-type. A second, subtler one: feeding this a native ComfyUI data list doesn't work, because the input type is the pack's LIST. If you have a data list and want its minimum, either keep it as a LIST (don't convert) or pick a data-list-aware node instead. When in doubt, pop a "show string" node on the output and look at what's actually flowing.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| list | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| min_value | * | — |