This topic describes the syntax and usage of the max function in Zoho Creator .


The max function returns the maximum value in a set of two numeric values




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.


max(5,7)   // returns 7


(5).max(7)  // returns 7