PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Min

Returns the smallest number in a list of numbers.

The Min action returns the smallest value in a list of numbers. Use it to find the lowest price, score or quantity in a list.

Add the action

In the Process Designer toolbox, open List, then Numeric, and pick Min (or type Min in the search box).

The Min 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 smallest number in the list.

Example

Input a list of numbersResult
[3,-7,12,5]-7
[0.5,2,-1.25]-1.25
[] (empty list)The step fails: The input was not valid, please revise it.

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 with The input was not a number. Please try again.

On this page