# Divide

This function block allows users to perform division operations on a set of input numbers. It dynamically adjusts to the number of inputs based on the user's selection.

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

`Number` The first input number that will be used in the division.

`Number` Additional numbers that can be added dynamically for calculation.

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

`Number` The result of the division operation.

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

`Input size` A dropdown menu that lets you select the number of inputs (from 2 to 20) for the division operation. The available sockets will update according to your selection.

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

`Dynamic Input Adjustment` The block automatically adjusts the number of input sockets based on the selected input size, allowing flexibility in operations without cluttering the interface.

`Robust Division` Computes the total result of dividing the first input by all subsequent inputs to provide a clear outcome.

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

1. **Select Input Size**: Use the `Input size` dropdown to choose the number of input sockets you need for your division operation.
2. **Input Numbers**: Fill in the numbers in the input sockets.
3. **Evaluate**: The output will display the result of the division when you run the block.

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

When run, this function block divides the first input by each subsequent input, returning the final result as output.

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

<details>

<summary>Cleanup Inputs</summary>

If you frequently adjust the input size, make sure the inputs are cleared or appropriately filled to avoid errors during evaluation.

</details>

<details>

<summary>Handling Zero Division</summary>

Implement a simple check to ensure that no input numbers are zero to prevent division by zero errors.

</details>

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

<details>

<summary>No Output</summary>

If you do not get any output, verify that you have filled in the input sockets correctly and none of the inputs are disconnected.

</details>

<details>

<summary>Invalid Calculation</summary>

Make sure you are providing numeric values only. Non-numeric inputs will result in an error during evaluation.

</details>
