I have the dictionary which i am passing to the template like this
dict['vars'] = ['a':'dd','b':'gg','c':'yy']
dict['myvars'] = ['a':'tt','b':'yy','c':'uu']
there are times
when the individual dict are empty with no key.
how can I check that like this
{% if dict.vars empty %}
do this
{% if not dict.vars %}
do this
{% endif %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With