Description

Array minimum function.

Returns

The smallest numeric value in an array. If the array parameter value is an empty array, returns zero.

Category

Array functions

Function syntax

ArrayMin(array)

Parameters

Parameter

Description

array

Name of an array

Example

<cfscript>
       myArray=[23,76,1,-43,9,112]
       minVal=ArrayMin(myArray)
       WriteOutput(minVal)// Returns -43
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy