Math.Max

Returns the greater of two values.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
xSeries<Number>--
ySeries<Number>--

Returns: Series<Number>

Math.Max is a built-in function - you can use it directly. Below is an example implementation:

1 function Math.Max(x, y): x if x >= y else y