Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Excerpt
hiddentrue

max(listOfValues) Returns the maximum of a set of values


Function: max()

Returns the maximum of a set of values supplied individually or in a list. All input values must be of type double.

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 where the candidate set for the key gives a list for in the case that in.value of  is the list [5,3,4].

max(true,false)

returns true

See Also