Lingo Dictionary > L-N > min() |  |

min()

Syntax

    list.min
    min(list)
    min (a1, a2, a3...)

Description

Function; specifies the minimum value in the list specified by `list`.

Example

This handler assigns the variable `vLowest` the minimum value in the list bids, which consists of [#Castle:600, #Shields:750, #Wang:230]. The result is then inserted in the content of the field cast member Sorry:

    on findLowest bids
    	vLowest = bids.min()
    	member("Sorry").text = \
    	"We're sorry, your bid of $" & vLowest && "is not a winner!"
    end

See also

`max()`