jeudi 8 août 2019

How to use if condition in for loop ? Jinja

I have two list and one variable returned from the Flask page to my HTML page.

a = [11121,11122,11123,11124,11130] b = [11126,11127,11128,11129,11130] var = 11121

Now I want to check if var either comes in a, or in b or in both in jinja2.

Aucun commentaire:

Enregistrer un commentaire