Answers for "if and else in python jinja"

1

jinja if else

{% if something_random == 15 %}
	<h1>Hello, this equals 15</h1>
    
{% else %}
	<h1>This does not equal 15</h1>
    
{% end if %}
Posted by: Guest on July-14-2021
2

jinja if

{% if 'priority' in data %}
    <p>Priority: {{ data['priority'] }}</p>
{% endif %}
Posted by: Guest on November-15-2020

Browse Popular Code Answers by Language