MIN returns the minimum value in a numeric dataset. It can also take an arbitrary number of additional arguments.
Function category: Statistical
Number, string or an array of numbers or strings (or anything that can be coerced into being a number)
Optional. Has the same restrictions as
Let's say we're given a response with the following vehicle information:
If we want to find the smaller of the nearest and highest rated service stations, we can use
This returns the following:
MIN can also take arrays as arguments.
MIN(data.local_service_prices.highest_rated, data.local_service_prices.nearest, data.local_service_prices.regional)
This results in the following: