# minmax

Source: https://zotonic.com/docs/1551/minmax

URI: https://zotonic.com/id/1551

Language: en



Force the given value in the given range.

This clamps the filter value between the two filter arguments.

Example:

```django
{% print 3|to_integer|minmax:10:20 %}
```

This will print `10`, since that is the minimum value allowed.

Passing in `undefined` will not clamp the value but return `undefined`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1551?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1551?language=en>)
