Ask AI
Skip to main content

Add 2 numbers

Function: Add 2 numbers

This action allows you to combine two numerical values to get their total sum. It's perfect for calculations where you need to add quantities, scores, or any other numerical data within your application.

Input

  • Left argument (NUMBER): The first number you want to add. This is a required input.
  • Right argument (NUMBER): The second number you want to add. This is also a required input.

Output

  • The sum variable name (NUMBER): The calculated total after adding the Left argument and the Right argument. This output provides the final numerical result.

Execution Flow

Real-Life Examples

  1. Calculating Total Order Quantity: Imagine you're building an order management system. When a customer adds items to their cart, you need to sum up the quantities.

    • Inputs:
      • Left argument: 5 (e.g., quantity of "Product A" already in cart)
      • Right argument: 3 (e.g., quantity of "Product B" just added)
    • Result: The action calculates 5 + 3 = 8. The output "The sum variable name" will hold the value 8, representing the total quantity of items in the cart.
  2. Summing Up Departmental Budgets: In a financial application, you might need to combine budget allocations from different departments.

    • Inputs:
      • Left argument: 15000.50 (e.g., Marketing Department budget)
      • Right argument: 23000.75 (e.g., Sales Department budget)
    • Result: The action calculates 15000.50 + 23000.75 = 38001.25. The output "The sum variable name" will hold the value 38001.25, representing the combined budget for both departments.
  3. Adjusting a User's Loyalty Points: For a customer loyalty program, you might add bonus points to a user's existing balance.

    • Inputs:
      • Left argument: 750 (e.g., current loyalty points)
      • Right argument: 100 (e.g., bonus points from a promotion)
    • Result: The action calculates 750 + 100 = 850. The output "The sum variable name" will hold the value 850, representing the user's new total loyalty points.