max



Function: max()

Returns the maximum of a set of values supplied individually or in a list.

Syntax

max(value1, value2,...valueN)

max(listOfValues)

ArgumentTypeDescription
value1..NAnyAll values should be of the same type
listOfValuesArrayList of values to be assessed

Examples

max(3,4,2)

returns 4

max( toDate("20220501"), toDate("20220502"))

returns the date 2-May-22

max([5,3,4])

returns 5

max(in.value)

max() returns 5 in the case that in.value is the list [5,3,4].

max(true,false)

returns true

See Also