min
Last updated
Last updated
Returns the smallest value of the numbers in the passed array.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
Description | Output Type |
---|---|
In this example, we will get the smallest of the numbers in a list and print the result in the console.
Drag a button
component to the canvas and open the Action
tab. Select the press
event of the button and drag the Log.write
function to the event flow.
Call the function List.min
inside the Log.write
function.
Then call the function Conversion.toList
inside the List.min
function.
Enter the values of the list to find the min from.
The console will print the min value of the list.
In this example, the value printed will be 1
.
See also:
Functions
value
The array of values to return the smallest value from.
Array/List
-
-
Yes
Returns the smallest value in the array.
Number