Whatever message this page gives is out now! Go check it out!

Min

Last update:
May 18, 2026

Description

Determines the lesser of two numbers.

Returns

The lesser of two numbers.

Category

Function syntax

Min(number1, number2)

See also

Parameters

Parameter
Description
number1, number2
Numbers

Example

<cfscript>
    val1=10
    val2=15
    writeOutput("The min of " & val1 & " and " & val2 & " is: " & min(val1,val2))
</cfscript>
The min of 10 and 15 is: 10

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page