Multiply
The 2-to-10-input multiplier that respects your ints
- operands
- MATCHTYPE
Multiplying two numbers is not a feature. But multiplying a denoise strength by a decay factor per frame, or scaling an image dimension so it stays a multiple of 8, or combining three values that came from other math nodes - that is a feature, and it's why a dedicated Multiply node earns its place. ComfyUI is full of places where you hardcode a number instead of computing it; this node is the antidote.
It ships in silveroxides/ComfyUI-LogicMath, the pack whose entire README is "Logic operators and Math nodes based on a PR that never got merged." Same author as the Chroma-GGUF quant pack. The interesting bit for you is that this is a V3-native node - it's written against ComfyUI's newer extension API rather than the legacy NODE_CLASS_MAPPINGS system, which is both its strength (feels modern, no legacy baggage) and its one real requirement (you need a current ComfyUI for it to load at all).
How it works
MathMultiply folds every input together with plain Python multiplication, left to right: operand1 * operand2 * ... * operandN. The clever part is the autogrow input and the MatchType output.
Autogrow means the operands plug isn't fixed at two inputs. You get 2 by default, and you can add more - up to 10 - so a * b * c needs one node instead of chaining two. Remove a wire and the input folds away. It's the most ComfyUI-native way to multiply a list of things.
MatchType means the output type follows the inputs. Feed it two INTs and you get an INT back; feed it a FLOAT anywhere and the result is a FLOAT. That sounds like a triviality until you've fought a node that quietly coerced your integer to 3.9999999 or demanded a float where you wanted clean ints for something like a seed or a batch size.
Inputs and outputs that matter
operands- the autogrow input. At least 2, up to 10, each accepting an int or a float.- Output - same type as the inputs (int stays int, float stays float).
There's no decimals, no mode dropdown, no settings to trip over. If you can multiply, you've mastered this node.
Installing it
ComfyUI Manager: Manager → Install Custom Nodes → search "ComfyUI-LogicMath". Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI-LogicMath
Restart after installing. No models to download, no extra pip packages - the pack's only dependency is comfy_api, which ships with ComfyUI itself.
Common gotchas
- ComfyUI must be current. This pack uses the V3 extension API and has no legacy
NODE_CLASS_MAPPINGS. On an older ComfyUI the node simply won't appear. If Manager installs it and nothing shows up, update ComfyUI first, then reload. - Order doesn't matter for multiply (unlike its sibling MathSubtract, where it absolutely does). So if you're multiplying, you can rearrange operands freely.
- Watch your type. Want an INT out? Feed only INTs in. The MatchType behavior is helpful, but it means your output type is whatever you put in - a single float input quietly turns the whole result into a float.
Multiply won't change your life on a static one-shot workflow. Start scheduling denoise or CFG over frames, or computing sizes from other sizes, and it becomes the node you reach for constantly.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| operands | COMFY_AUTOGROW_V3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MATCHTYPE | COMFY_MATCHTYPE_V3 | — |