> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/functions/math/array.md).

# Array Operations

Returns the min/max/mean/median value of a given array.

| Block           | Result                                                                                 |
| --------------- | -------------------------------------------------------------------------------------- |
| Min in Array    | Smallest value in the array                                                            |
| Max in Array    | Largest value in the array                                                             |
| Mean in Array   | [Arithmetic mean](https://en.wikipedia.org/wiki/Arithmetic_mean) of the array elements |
| Median in Array | [Median](https://en.wikipedia.org/wiki/Median) of the array elements                   |

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] Array (integer/float array) - array to evaluate.
* \[Output] Result (depends on the input data type) - result of the operation.
* \[Output, only in Max/Min] Index (integer) - position of the found element in the array (starting at 0).
