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