Skip to main content

Max

The Min function returns the larger of two numbers.

Prototype

    Max(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 larger

Exception

    Undefined

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

Examples 

    Max(10 ; 20)

This will return 20.