Hi,
I’d like to subtract the value of one property from the value of another.
i.e. person.apples - person.oranges
More precisely, I’d like to use it in an IF statement:
{% if person.apples > person.oranges %}
{person_nutrition_score - person.suggested_nutrition_score}}
However, I can’t find any documentation on using simple subtraction. I’ve looked at the Django reference and also this related forum post which I’ve modeled my own post after.
Any ideas how this can be done?
Best answer by stephen.trumble
View original