Answer the question
In order to leave comments, you need to log in
How to make calculations on the html side?
For example, in python, you can build a condition with calculations
a = 10
b = 2
for i in a:
if i%b == 0:
print("ПриветПока")
Answer the question
In order to leave comments, you need to log in
As I understand it, you need to make a conclusion in the template, taking into account the mentioned condition. Then you can try like this.
{{ if i|divisibleby:"b" }}
...
{{ endif }}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question