Name
ArrayMax
Synopsis
ArrayMax(array
)
Returns the largest numeric value contained in the array. Useful only
for arrays containing numeric values. Here’s an example that
returns the highest grade in the array Grades
:
<CFSET Grades = ArrayNew(1)> <CFSET Grades[1] = 95> <CFSET Grades[2] = 93> <CFSET Grades[3] = 87> <CFSET Grades[4] = 100> <CFSET Grades[5] = 74> <CFOUTPUT>The highest grade is #ArrayMax(Grades)#%.</CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.