CFLib.org – Common Function Library Project

listMin(list[, delim])

Last updated January 20, 2006

author

Steven Van Gemert

Version: 1 | Requires: CF5 | Library: StrLib

Description:
ListMin returns the smallest value in a list.

Return Values:
Returns a number.

Example:

<cfoutput>
#istMin("1,2,3,4")#
</cfoutput>

Parameters:

Name Description Required
list The list to check. Yes
delim List delimeter. Defaults to a comma. No

Full UDF Source:

/**
 * ListMin returns the smallest value in a list.
 * 
 * @param list      The list to check. (Required)
 * @param delim      List delimeter. Defaults to a comma. (Optional)
 * @return Returns a number. 
 * @author Steven Van Gemert (svg@placs.net) 
 * @version 1, January 20, 2006 
 */
function listMin(list){
    var delim = ",";
    if(arrayLen(arguments) gte 2) delim = arguments[2];
    return arrayMin(listToArray(list,delim));
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson