Add

Arithmetic Pure Generic
Add
A 0
Result
B 0

Description

Pure function returning the sum of two numbers.

When to use

Use Add whenever you need to increment a counter, offset an index, or combine two numeric quantities. Because it is a pure node it evaluates lazily — wire its result directly into any node that expects a number. Both integer and decimal inputs are accepted; the type is resolved when the first connection is made.

Pins

Input pins

Pin Type Default Notes
A generic(integer, decimal) 0 The first addend.
B generic(integer, decimal) 0 The second addend.

Output pins

Pin Type Notes
Result generic(integer, decimal) The sum of a and b.

Example

Compute the total item count by adding a base quantity to an extra amount. Wire the two number sources into the A and B inputs of Add. The Result output carries the sum and can be passed to any downstream node, such as Log message after converting with Integer to string or Decimal to string.

See also