Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Just exceptional. Thank you so much, Jack, you smashed it.

— Hugo, Developer

divide Modifier

Divide a value or another variable by your variable. Pass an integer or the name of a second variable as the parameter.

bacon: 21
skillets: 3
{{ bacon | divide($skillets) }}
{{ skillets | divide(3) }}
{{ Statamic::modify($bacon)->divide($skillets) }}
{{ Statamic::modify($skillets)->divide(3) }}
7
1
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →