Add
Adds two numbers.
Node id math/add
The Add node outputs a + b.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| a | number | 0 | |
| b | number | 0 |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | number |
Behaviour
- Defaults. Both inputs default to 0, so an unset input leaves the other one unchanged.
- Invalid math. Like every math node, Add reports no errors: adding
Infinityand-Infinitygives NaN ("not a number"), which flows on to the next nodes. - More than two numbers. Chain several Add nodes, or add up an array with Reduce.