min | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the smallest number of a list of numbers. | ||||||
Introduced | 1.0 | ||||||
Changes | The ability to use an array was introduced in version 1.1. In previous versions, only lists of numbers could be used with the min function. | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Operator: <=, < Command: group Function: max, extents, sum, value, average Control Structure: function Glossary: evaluate, range, expression, function, return, value | ||||||
Description | Use the min function to find the lowest value in a group of values. You can use the min and max functions together to limit a value to a certain range. For example, the expression min(1,max(myValue,0)) yields a number between zero and 1. If myValue is within the limits, the expression is equal to myValue; if it is greater than 1, the expression evaluates to 1; and if it is less than zero, the expression evaluates to zero. | ||||||
Tags | math |