max

Determines the greater of two numbers.

max(number1, number2) → returns Numeric

Argument Reference for the max function

number1

Required: Yes

number2

Required: Yes

Examples sample code invoking the max function


Tag Example

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

Fork me on GitHub