Modifier: subtract
Subtract 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.
capacity: 2500
reservations: 1900
{{ capacity | subtract:1900 }}
{{ capacity | subtract:reservations }}
{{ capacity | -:reservations }}
600
600
600
Additional Reading
Learn how to use and chain modifiers in the Antlers template guide.