min

Take the minimum of the filter value and its first argument.

The following:

{% print 102|to_integer|min:103 %}

Prints 102.

Edit on GitHub

max Numbers minmax

Referred by

Filters

Filters transform template variables before they are rendered.