jinja check if variable is defined and define it code example
Example: Jinja if with true value
{% if bCat2 == true %}
<div>True</div>
{% else %}
<div>False</div>
{% endif %}
{% if bCat2 == true %}
<div>True</div>
{% else %}
<div>False</div>
{% endif %}