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));
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson