$max
Last updated
Last updated
$max
operator helps you in finding the maximum value in an given array expression. You can use this in any Expression Object.
Field | Description | Required |
---|---|---|
float
- The result of $max operation
The above expression returns 6
The above expression calculates the nested expression, return 3,4 respectively in its place and then the outer $max
expression returns 4 overall.
Let's say we have declared a variable temp
in our API flow, which has a value of [5, 4, 3, 2, 1]
currently.
The above expression would resolve to a result of 5
<expr>
The <expr>
expression can be any valid expression as long as it resolves to a number.
It can also be a Magical Autocomplete.
true