---
title: "max · RUAL Documentation"
description: "Returns the highest number in the given array of numbers."
canonical: https://docs.rual.nl/block-types/array/array_max
language: en
---

# max

This block is part of the [`array`](https://docs.rual.nl/block-types/array) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Returns the highest number in the given array of numbers.

- Array required `array` The array of numbers for which to find the highest number.

- Number `number` The highest number in the given array of numbers.

Returns the highest item after coercing to numbers; numeric strings and booleans coerce, and non-coercible items after the first are ignored. Outputs 0 when the array is empty, not an array, or its FIRST item is not numeric-coercible - indistinguishable from a real maximum of 0.

| `highest` |
| --- |

A typical wiring for [max](https://docs.rual.nl/block-types/array/array_max): [with numbers](https://docs.rual.nl/block-types/array/array_of_numbers) feeds the `array` pin; the `number` out pin feeds [plus hours](https://docs.rual.nl/block-types/date/date_add_hours).

![Studio canvas example for the max block: typical wiring for max.](https://docs.rual.nl/canvas-examples/array_max.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [with numbers](https://docs.rual.nl/block-types/array/array_of_numbers): feeds into this block. Returns an array of numbers.

- [plus hours](https://docs.rual.nl/block-types/date/date_add_hours): this block feeds into it. Plus an selected amount of hours to your given date.

- [set fields](https://docs.rual.nl/block-types/mutations/mutations_set_bp_field_multiple): this block feeds into it. Generates an array of mutations based on the given filled fields.

- [new object](https://docs.rual.nl/block-types/object/object_new_fields): this block feeds into it. Builds a new object filled with the given fields.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
