Skip to main content

Addition

This node adds two numbers together and returns the result.

The Addition node performs mathematical addition with error handling and value validation.

The Addition node takes two numeric inputs and calculates their sum. It includes built-in validation to ensure inputs are valid numbers and that the result stays within acceptable bounds (-1,000,000,000,000 to 1,000,000,000,000).

Inputs

Numbers

DataDescription
First NumberThe first number to add (default: 0)
Second NumberThe second number to add (default: 0)

Actions

SignalDescription
DoTriggers the addition calculation

Outputs

DataDescription
ResultThe sum of the two input numbers
SignalDescription
DoneTriggered when the calculation is complete

Usage

The Addition node is used for basic arithmetic operations in your application. It supports:

  • Integer and decimal number addition
  • Automatic input validation
  • Error handling for invalid inputs
  • Range checking to prevent overflow

Example Use Cases

  1. Counter Logic: Incrementing values by adding amounts
  2. Financial Calculations: Adding prices, taxes, or fees
  3. Game Scoring: Combining point values
  4. Data Processing: Summing numeric values from user inputs

Error Handling

The node will log errors and not perform calculations if:

  • Input values are not valid numbers
  • Input values exceed the allowed range (-1 trillion to 1 trillion)
  • The result would exceed the allowed range

Performance Tips

  • Input validation occurs immediately when values are set
  • The calculation is performed only when the Do signal is triggered
  • Results are cached until new inputs are provided