Minimum
The smallest of your numbers, without a comparison chain
- values
- MATCHTYPE
Minimum takes between two and ten numbers and returns the smallest one. That's it, and like its sibling Maximum, it's one of those nodes that feels trivial until you actually need it and discover ComfyUI core has no built-in way to do it. Once you're past a couple of primitive nodes, comparing a handful of values by hand gets silly fast.
The classic use is the other half of range-guarding. Maximum keeps a value from going too low; Minimum keeps it from going too high. A strength, a denoise value, an upscale factor - computed values can overshoot, and clamping the upper bound with a single min(value, cap) node is the shortest readable way to hold them in range. It's also genuinely useful for "lowest common denominator" style logic: the smallest available VRAM-friendly batch size across a set of limits, or the tightest constraint from a list of computed values.
How it works
values is an autogrowing list - two to ten numeric inputs, added with the plus button. On execution the node runs Python's built-in min() across all of them and returns the smallest. Both ints and floats are accepted via the type template, and the output type follows what you put in.
Like everything else in this pack, it's stateless and deterministic: same inputs, same output, every run. That makes it safe to drop into the middle of a graph without any caching or ordering surprises. The inputs are a list, not a chain - so all values are compared as peers, and there's no "first one wins" behavior to trip over.
The inputs that matter
values(2–10): the numbers to compare. Type values in or wire from INT/FLOAT outputs.
Output is the minimum as a MATCHTYPE number.
Note it requires at least two inputs by design - if you only have one number, you don't need this node, and adding just one value then scratching your head about the missing output is a classic self-inflicted moment.
Install
This node ships in the ComfyUI-LogicMath pack. Install via ComfyUI Manager (search "ComfyUI-LogicMath", Install, restart) or:
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI-LogicMath
No pip dependencies, no model files. The pack uses ComfyUI's newer extension API, so if the node doesn't appear after a restart, update ComfyUI first.
Common issues
- Nothing comes out with one input - the node needs two or more values by design.
- The result isn't what you'd expect - check every input; the minimum is defined by all of them, and a low outlier you forgot about will win.
Together with Maximum, this node is how you build "keep this value between X and Y" without a rat's nest of comparison nodes - Min caps the top, Max floors the bottom, and Clamp in the same pack does both at once if you'd rather have one node.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| values | COMFY_AUTOGROW_V3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MATCHTYPE | COMFY_MATCHTYPE_V3 | — |