Minimum
This function block finds the smallest value from a list of numeric inputs and returns that value together with its position in the list. It is ideal for comparing measurements, scores or any set of numbers to determine the minimum and where it occurred.
π₯ Inputs
Values One or multiple numeric values provided as a list. The number of input sockets is adjustable.
π€ Outputs
Number The smallest numeric value found among the provided inputs.
Index The position (index) of the smallest value within the provided input list.
πΉοΈ Controls
Input size Choose how many values you want to compare. The block will automatically add or remove input sockets to match the selected size.
(how to use) To change how many numbers you compare, open the Input size dropdown and select the desired number. The block updates its sockets to match.
π― Features
Dynamic inputs: easily increase or decrease the number of numeric inputs without reconfiguring connections.
Dual outputs: returns both the minimum value and its index so you can trigger actions or annotate results based on position.
Safe evaluation: skips unconnected inputs so partial configurations do not break the workflow.
βοΈ Running mechanism
When the system evaluates this block, it reads all connected numeric inputs, ignores empty/unconnected sockets, and computes the smallest value and its index. The block then outputs the minimum and the corresponding index for downstream processing.
π Usage instructions
Set the desired number of inputs with
Input size.Connect numeric sources to the input sockets (for example, use
Number Inputblocks or numeric outputs from other function blocks).Use the
Numberoutput where you need the smallest value.Use the
Indexoutput to identify which input produced that value.
π‘ Tips and Tricks
Combine with
Number Inputto manually feed test values when setting up or debugging a flow.Use
Maximumalongside this block to get both extremes (min and max) of the same set of values.If you need to pick a specific item from a batch or list after finding the minimum index, feed the index into
Get Elementto retrieve the associated item.For noisy measurements, consider preprocessing numeric data (e.g., smoothing or filtering) before feeding them here using blocks such as
Data Memoryto hold intermediate values orRoundto normalize precision.To visualize trends or live values, send the outputs to
Scopeor log them withCSV Export/Image Loggerfor later analysis.When working with batched data, use
DebatchandBatch Processingblocks to convert between batch and individual values and ensure the block receives the expected input format.
π οΈ Troubleshooting
If the block returns unexpected results, verify all intended input sockets are connected and providing numeric values.
If some inputs should be ignored, leave their sockets disconnected β the block will skip them.
If the index looks off, double-check the order of connected inputs; the index refers to the position in the input list after any skipped/unconnected sockets are ignored.
Last updated
Was this helpful?