min

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