subtract
Returns the value less the given number, the way a remaining quantity is worked out from a total and what has gone, as in `{{ seats | subtract:booked }}`.
It reads left to right like the sentence it
stands for, which add with a negated argument cannot do when the amount is
a field.
InputArgumentsReturns
Sourceanyanyfloat64BasicSource
Works out what is left of a total.
Given
{"seats": 120, "booked": 97}Template
{{ seats | subtract:booked }} leftResult
23 left