min

Returns the smallest of the given numbers.

Arguments

  • number1 - The first number to compare.
  • number2 - The second number to compare.

Example

{
  "$template": {
    "$comment": "The field below will be 3",
    "test": "{{min(3, 5)}}"
  }
}