# Add

This function block allows you to perform addition on multiple numerical inputs. It automatically adjusts its number of input sockets based on user selection.

## 📥 Inputs <a href="#inputs" id="inputs"></a>

`Input size` A dropdown menu that lets you select how many numerical inputs will be used for the addition. You can choose between 2 and 20.

`Number` The actual numerical inputs that will be summed together. The number of these input sockets adjusts according to your selection in the dropdown.

## 📤 Outputs <a href="#outputs" id="outputs"></a>

`Number` The result of the addition operation, providing the sum of all connected input values.

## 🕹️ Controls <a href="#controls" id="controls"></a>

`Input Size` A dropdown control that allows you to select the number of inputs for this block. Adjusting this will change the number of input sockets available.

## 🎨 Features <a href="#features" id="features"></a>

`Dynamic Input Handling` The block automatically adjusts the number of input sockets based on user selection, allowing for flexible use.

`Simple Addition` Computes the total of all numerical inputs provided to it.

## 📝 Usage Instructions <a href="#usage" id="usage"></a>

1. **Select Input Size**: Use the `Input size` dropdown to choose how many numbers you want to add together, from 2 to 20.
2. **Provide Numbers**: Enter numbers into the available input sockets that appear based on your selection.
3. **Evaluate**: When you evaluate the block, it sums the numbers from all connected input sockets and outputs the result.

## 📊 Evaluation <a href="#evaluation" id="evaluation"></a>

Upon running this block, it will compute the sum of all connected input numbers and return the total as output.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

<details>

<summary>Limit Number of Inputs</summary>

If you frequently need to add the same number of inputs, set that number as your default in the dropdown by selecting it before doing further adjustments.

</details>

<details>

<summary>Combining with Other Math Operations</summary>

You can combine this block with other operations like `Subtract`, `Multiply`, or `Divide` to perform more complex calculations by chaining them together.

</details>

<details>

<summary>Debugging Output</summary>

If you're not getting the expected output, use the `Debug Input` function block before this to ensure the numbers you're feeding into this block are correct.

</details>

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

<details>

<summary>No Output</summary>

Ensure that all connected input sockets are receiving valid numerical data. If any socket is unconnected, it will affect the final output.

</details>

<details>

<summary>Input Size Not Updating</summary>

If the input sockets don’t seem to change when you modify the input size, ensure that the dropdown selection has been changed properly, and try re-evaluating the block.

</details>
