Modifier: add
Add 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.
books: 5
magazines: 10
{{ books | add:5 }}
{{ books | add:magazines }}
{{ books | +:magazines }}
10
15
15
Additional Reading
Learn how to use and chain modifiers in the Antlers template guide.