PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

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).

The Max action properties: Input a list of numbers and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input a list of numbersInputList of numbersYesThe numbers to compare, for example [3,-7,12,5].
ResultOutputNumberYesThe largest number in the list.

Example

Input a list of numbersResult
[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.

On this page