Array Max & Min Function
- Updated2025-01-28
- 2 minute(s) read
Array Max & Min Function
Returns the maximum and minimum values found in array, along with the indexes for each value.
The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
![]() array can be an n-dimensional array of any type. ![]() max value is of the same data type and structure as the elements in array. ![]() max index(es) is the index for the first max value. If array is multidimensional, max index(es) is an array whose elements are the indexes for the first maximum value in array. ![]() min value is of the same data type and structure as the elements in array. ![]() min index(es) is the index for the first min value. If array is multidimensional, min index(es) is an array whose elements are the indexes for the first minimum value in array. |
The function compares each data type according to the rules for Array Comparison.
If a numeric array has one dimension, the max index and min index outputs are scalar integers. If a numeric array has more than one dimension, these outputs are 1D arrays that contain the indexes of the maximum and minimum values.
If the input array is empty, max index and min index are –1.