Built-in action Built In

Find the maximum numeric value in a list. Accepts an array of numbers or numeric strings and returns the largest value along with its index. Useful for finding highest prices, largest balances, top values, etc.

At a Glance

FieldValue
Action IDlist-max
CategoryBuilt In
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsutility, transformer, list, max, maximum, aggregate, math

Payload Schema

FieldTypeRequiredDescription
valuesarrayYesArray of numbers or numeric strings to find the maximum of. Supports workflow variables like {{node.result.prices}}.

Result Schema

FieldTypeRequiredDescription
resultstringYesThe maximum value as a string.
indexnumberYesZero-based index of the maximum value in the original array.

Examples

json
{ "type": "list-max", "payload": { "values": [ 10, 5, 20, 3, 15 ] }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I