at_least
Enforce a minimum numerical threshold by returning the specified minimum value if the input is smaller.
Syntax
{{ number | at_least: min_value }}Example
{% assign count = 2 %}{{ count | at_least: 5 }} minimum itemsOutput
5 minimum itemsThe at_least filter checks whether a numerical input is smaller than a specified minimum threshold. If the input is below the threshold, the minimum value is returned instead, effectively establishing a hard numerical floor.
In programmatic SEO campaigns, at_least prevents misleading or zero-quantity claims in hero banners when sparse keyword rows have low counts. For example: {{ row.technicians_count | at_least: 3 }} verified contractors ready to serve you. This guarantees that marketing badges always present a credible baseline across local branch pages.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
