Skip to main content

Min

The Min function returns the smaller of two numbers.

Prototype

    Min(Value1; Value2)

Arguments

    Value1                     Number                     By value

A valid number, an expression or a variable (Studio Only) that evaluates a number.

Value2 Number By value

A valid number, an expression or a variable (Studio Only) that evaluates a number.

Returns

    Number

Parameter Value1 or Value2 whichever is smaller.

Exception

    Undefined

Undefined is returned if the Value1 or Value2 is Undefined or is not a Number.

Examples 

    Min(10 ; 20)

This will return 10.