Add
Add 2 to 10 numbers in one node instead of a chain
- operands
- MATCHTYPE
Add is the node you reach for when a workflow needs to total up more than two numbers and you're tired of stacking primitive nodes. It takes two to ten numeric inputs and returns their sum. Nothing clever, nothing hidden - just the arithmetic that ComfyUI core inexplicably expects you to assemble yourself.
It's one of those "of course it exists" nodes that quietly carries a lot of workflows. Common uses: computing a combined strength (base strength plus a LoRA's contribution), adding an offset to a resolution or a seed, summing several conditioning weights, or building a total batch size from parts. It also handles mixed types gracefully - ints and floats can coexist on the inputs, and you get a sensible result either way.
How it works
operands is an autogrowing list - two to ten inputs, added with the plus button on the node. On execution it walks the list and folds them together with addition: first plus second plus third, and so on. The output type follows the inputs, so all-int input gives an int, and any float in the mix gives a float.
There's no state and nothing cached - feed it the same values and it returns the same sum every run, which makes it safe to drop anywhere in a graph without worrying about side effects. It's about as deterministic as a node gets.
One practical note: addition is commutative, so order doesn't matter here (unlike Divide or Subtract in the same pack). That removes the entire class of "which operand goes first" mistakes. If you're subtracting or dividing, you'll want those sibling nodes; for adding, this is the whole game.
The inputs that matter
operands(2–10): the numbers to add. Type values in or wire from any INT/FLOAT output.
Output is the sum as a MATCHTYPE number.
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 requirements, 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
- Only two inputs showing - that's the minimum by design. Hit the plus button to add more, up to ten.
- Node not in the menu - out-of-date ComfyUI; update and restart.
If you're only ever adding two numbers, a primitive node does the same job and you don't need this. The moment the sum count creeps past two, this is the node that keeps the graph from turning into a snake of arithmetic.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| operands | COMFY_AUTOGROW_V3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MATCHTYPE | COMFY_MATCHTYPE_V3 | — |