I am checking for pushing data based upon variables set true or false.
My varaibles file which is json file has
{
"isfs" : True
}
and my template (t2.j2)has below condition
{% if '{ isfs | d() | bool }' -%}
<perform operation >
{% else -%}
<perform 2 operation
Every time it executes <perform opertaion >
even if change value of json file "isfs": False
.
Please pour some suggestion.
I tried d(true) and also I tried with elif condition nothing helping me
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…