diff --git a/filters/at_least.md b/filters/at_least.md new file mode 100644 index 0000000..507eeb0 --- /dev/null +++ b/filters/at_least.md @@ -0,0 +1,30 @@ +--- +title: at_least +description: Liquid filter that limits a number to a minimum value +--- + +Limits a number to a minimum value. + +

Input

+{% raw %} +```liquid +{{ 4 | at_least: 5 }} +``` +{% endraw %} + +

Output

+``` +5 +``` + +

Input

+{% raw %} +```liquid +{{ 4 | at_least: 3 }} +``` +{% endraw %} + +

Output

+``` +4 +``` diff --git a/filters/at_most.md b/filters/at_most.md new file mode 100644 index 0000000..3871f7f --- /dev/null +++ b/filters/at_most.md @@ -0,0 +1,30 @@ +--- +title: at_most +description: Liquid filter that limits a number to a maximum value +--- + +Limits a number to a maximum value. + +

Input

+{% raw %} +```liquid +{{ 4 | at_most: 5 }} +``` +{% endraw %} + +

Output

+``` +4 +``` + +

Input

+{% raw %} +```liquid +{{ 4 | at_most: 3 }} +``` +{% endraw %} + +

Output

+``` +3 +```