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

Multiply Modifier

Multiply a value or another variable to your variable. Pass an integer or the name of a second variable as the parameter. Also supports * as shorthand.

smiles: 3
winks: 4
{{ smiles | multiply(10) }}
{{ smiles | multiply($winks) }}
{{ smiles | *($winks) }}
{{ Statamic::modify($smiles)->multiply(10) }}
{{ Statamic::modify($smiles)->multiply($winks) }}
30
12
12