max

Definition: object x1 = max(object x2, object x3)
-- or --
object x1 = max(sequence s1)
Description: Returns the largest of x2 and x3, or the largest element in sequence s1. Atoms are considered to be less than sequences. Sequences are compared "alphabetically" (case sensitive, ie 'a'>'Z') starting with the first element until a difference is found.
Example 1:
x = max(7,5)        -- x is 7
y = max({7,5,3})    -- y is 7
Example 2:
x = max("one","two")                    -- x is "two"
y = max({"one","two","three","four"})   -- y is "two"
See Also: equal, compare, min, relational operators, sequence operations