# Maximum

This function block is responsible for calculating the maximum value from a series of input numbers. It also returns the index of this maximum value.

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

The number of input values can be dynamically adjusted based on the selected input size. The inputs will be accepted in the form of generic sockets.

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

`Generic` The maximum value from the list of provided inputs.

`Index` The index of the maximum value within the input list.

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

`Input Size` A dropdown menu that allows you to select how many inputs you want to work with. It ranges from 2 to 20.

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

`Dynamic Input Adjustment` Automatically adjusts the number of input sockets based on the selected size in the dropdown.

`Simple Maximum Calculation` Uses NumPy's efficient methods to compute the maximum value and its index.

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

1. **Select Input Size**: Use the dropdown menu to select how many numbers (from 2 to 20) you want to input.
2. **Connect Inputs**: Connect your input values to the available sockets that appear based on the number you selected.
3. **Evaluate**: Run the block to calculate the maximum value from the connected inputs and receive the output.

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

When evaluated, this function block will return the maximum value from all input connections and indicate its position within the input list.

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

<details>

<summary>Handling Non-Numeric Inputs</summary>

Ensure that all connected inputs are numeric to avoid errors during maximum value calculation.

</details>

<details>

<summary>Debugging Outputs</summary>

Use the `Debug Input` function block to check your connected inputs dynamically. It can simplify finding issues before they reach the `Maximum` block.

</details>

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

<details>

<summary>No Outputs Received</summary>

Verify that all inputs are connected and properly providing numeric values. If any input is missing, the operation may not yield the desired results.

</details>

<details>

<summary>Incorrect Maximum Value</summary>

Check that all connected inputs are valid and numeric. Mixed data types can lead to unexpected outputs or errors.

</details>
