Variable subtraction in django templates

sumaya
SM
Published on Oct, 28 2024 1 min read 1 comments
image

It is able to write {{ myval.add:12 }}, {{ myval|add:value }} and even {{ myval|add:-7 }}.

However, I can't find out what I should type to add value * -1 like {{ myval|add:-value }}. This doesn't work, sadly.

1 Answers

Mahabubur Rahman Oct 28, 2024 - 04:29 PM