Take the minimum of the filter value and its first argument.
The following:
{% print 102|min:103 %}
Prints 102.
See also
max
minmax
Enter search terms or a module, class or function name.