max
This topic describes the syntax and usage of the max function in Zoho Creator .
Description
The max function returns the maximum value in a set of two numeric values
Syntax
<num1>.max(<num2>)
(or)
max(<num1>,<num2); // This format is supported only in free-flow scripting mode of script builder.
The max function syntax has the following arguments:
num1 - Required. An integer/decimal value or a numeric expression.
num2 - Required. An integer/decimal value or a numeric expression.
Return Value
Returns an integer / decimal value representing the maximum value from the given values.
Example
max(5,7) // returns 7
(or)
(5).max(7) // returns 7