if not none jinja2 code example
Example: jinja check if variable is none
{% if p is none %}
<!--None-->
{% else %}
<!--Not None-->
{%endif %}
{% if p is none %}
<!--None-->
{% else %}
<!--Not None-->
{%endif %}