min
Description
Returns the smallest value of the numbers in the passed array.
Input / Parameter
Name
Description
Input Type
Default
Options
Required
value
The array of values to return the smallest value from.
Array/List
-
-
Yes
Output
Description
Output Type
Returns the smallest value in the array.
Number
Example
In this example, we will get the smallest of the numbers in a list and print the result in the console.
Step
Drag a
buttoncomponent to the canvas and open theActiontab. Select thepressevent of the button and drag theLog.writefunction to the event flow.Call the function
List.mininside theLog.writefunction.Then call the function
Conversion.toListinside theList.minfunction.Enter the values of the list to find the min from.

Result
The console will print the min value of the list.
In this example, the value printed will be
1.
Links
Related Information
See also:
Functions
Last updated