Max
Returns the largest number in a list of numbers.
The Max action returns the largest value in a list of numbers. Use it to find the highest price, score or quantity in a list.
Add the action
In the Process Designer toolbox, open List, then Numeric, and pick Max (or type Max in the search box).

Inputs and outputs
| Field | Direction | Type | Required | What to put / what you get |
|---|---|---|---|---|
| Input a list of numbers | Input | List of numbers | Yes | The numbers to compare, for example [3,-7,12,5]. |
| Result | Output | Number | Yes | The largest number in the list. |
Example
| Input a list of numbers | Result |
|---|---|
[3,-7,12,5] | 12 |
[1.5,2.75,"3"] | 3 |
[] (empty list) | The step fails: The input was not valid, please revise it. |
["a","b"] | The step fails: The input was not a number. Please try again. |
Good to know
- Numbers stored as text (
"3") are compared as numbers. - The step fails on an empty list. If the list can be empty, check it first with Has Elements or Length.
- Any element that is not a number makes the step fail.
Related actions
- Min, Sum, Median, Arithmetic Mean, Sort

