Equinox Online Help - Language Reference - A to Z

Home

Max

Applies to
SyntaxMax(Number1Expression, Number2Expression)
Action[Function] Returns the greater of two values.
ScopeUsable anywhere.
Notes

This function compares Number1Expression and Number2Expression and returns the value of whichever is greater.

CategoryMaths
See Also Abs, Acos, Asin, Atan, Cos, Deg, Int, Log, MinMax, Rad, Rnd, RndStart, Round, Sign, Sin, Sqrt, Tan
Example

This example sets the variable x to the age of the eldest child.

number x

x = Max(Child1Age, Child2Age)