Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Divide Modifier

Divide your variable by the value passed as the parameter. Pass a number or another variable.

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