Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

mod Modifier

Get the modulus value (remainder after division) of a value split by another numeric value. Pass an integer or the name of a second variable as the parameter. Also supports % as shorthand.

bottles: 3
glasses: 14
{{ glasses | mod(14) }}
{{ glasses | mod($bottles) }}
{{ glasses | %($bottles) }}
0
2
2
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →