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
| Data | Description |
|---|---|
| First Number | The first number to add (default: 0) |
| Second Number | The second number to add (default: 0) |
Actions
| Signal | Description |
|---|---|
| Do | Triggers the addition calculation |
Outputs
| Data | Description |
|---|---|
| Result | The sum of the two input numbers |
| Signal | Description |
|---|---|
| Done | Triggered 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
- Counter Logic: Incrementing values by adding amounts
- Financial Calculations: Adding prices, taxes, or fees
- Game Scoring: Combining point values
- 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