min

Determines the lesser of two numbers.

min(number1, number2) → returns Numeric

Argument Reference for the min function

number1

Required: Yes

number2

Required: Yes

Examples sample code invoking the min function


Tag Example

<cfset local.myNum1 = 4 /> 
 <cfset local.myNum2 = 9 /> 
 The minimum of the two numbers is <cfoutput>#min(local.myNum1, local.myNum2)#</cfoutput> 
  

Fork me on GitHub