Built-in action Built In

Find the minimum numeric value in a list. Accepts an array of numbers or numeric strings and returns the smallest value along with its index. Useful for finding lowest prices, smallest balances, cheapest options, etc.

At a Glance

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

Payload Schema

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

Result Schema

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

Examples

json
{ "type": "list-min", "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