diff --git a/filters/at_least.md b/filters/at_least.md new file mode 100644 index 0000000..1560dce --- /dev/null +++ b/filters/at_least.md @@ -0,0 +1,34 @@ +--- +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

+{% raw %} +``` +5 +``` +{% endraw %} + +

Input

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

Output

+{% raw %} +``` +4 +``` +{% endraw %} diff --git a/filters/at_most.md b/filters/at_most.md new file mode 100644 index 0000000..e467bb2 --- /dev/null +++ b/filters/at_most.md @@ -0,0 +1,34 @@ +--- +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

+{% raw %} +``` +4 +``` +{% endraw %} + +

Input

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

Output

+{% raw %} +``` +3 +``` +{% endraw %}