Min
Take the smaller of two values, no clamp node required
- input1
- input2
- *
Min takes two values and hands back whichever one is smaller. That's min(input1, input2), no more and no less - the same function every language ships as a builtin, wired up as two sockets and one output.
It's a small node with an outsized number of uses once you're building anything dynamic. Say you compute a resize target as a ratio of the original image, but you never want it to exceed some hard cap - wire the computed value and a fixed cap into Min and you've got a ceiling without writing a separate clamp node. Same idea for batch counts, step counts, anything where "use this, but never more than that" is the actual rule. If you also need a floor, this pack doesn't ship a matching Max node in this set, so you'd build the same pattern in reverse with whatever comparison node you have available, or just flip the sign with Negate Value and Min it, then flip back.
How it works
Straight comparison: whichever of input1 / input2 is smaller comes out unchanged. No coercion, no rounding - if you feed it a float and an int, you get back exactly whichever one won the comparison, in its original type.
The inputs and outputs that matter
- input1 and input2 - both typed
*, meaning either one can be wired from anything comparable: two INTs, two FLOATs, or a mix. - Output - also
*. The result is literally one of your two inputs, unmodified, so its type follows whichever value was smaller.
How to install it
Ships with the whole LogicUtils pack. In ComfyUI Manager, search ComfyUI-LogicUtils, install, restart. Or by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/aria1th/ComfyUI-LogicUtils
then restart ComfyUI. Pure Python, no models, nothing to download beyond the repo itself.
For context on where this comes from: the author is aria1th, publicly known as AngelBottomless - the trainer behind Illustrious XL, the SDXL anime finetune that took over from Pony Diffusion v6 as the open-source go-to. LogicUtils is a side toolbox he built for his own graphs, and it's documented exactly as much as the README admits: "Proper documentation is being prepared, however there are too many nodes." Nothing's changed there since the repo's last push in early 2026. It's a working, used pack - it shows up as a listed dependency next to rgthree-comfy and comfyui-kjnodes in real published workflows - it's just self-explanatory by node name rather than by any actual writeup.
Common issues & troubleshooting
Can't find it after install. Make sure the folder under custom_nodes is named exactly ComfyUI-LogicUtils, not ComfyUI-LogicUtils-main from a manual zip download, then fully restart ComfyUI.
Comparing an INT and a FLOAT gives you a surprising type. That's expected - the node doesn't normalize types, it just returns whichever input was smaller, as-is. If the next node insists on a specific type, run the result through Ceil, Floor, or a dedicated converter afterward.
You actually wanted the larger of two values. Min only ever returns the smaller one. There's no Max node in this pack's line-up here, so the usual workaround is negating both inputs with Negate Value, taking the Min, then negating the result back - clunky, but it works.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| input1 | * | — | |
| input2 | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |