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, use the following function.
# Find a specific value in an arrayMIN(data.local_service_prices.highest_rated, data.local_service_prices.nearest)# Returns 120
We can also use arrays as arguments using the following function.
# Using arrays as argumentMIN(data.local_service_prices.highest_rated, data.local_service_prices.nearest, data.local_service_prices.regional)# Returns 90