else


Located at the end of an if loop, else tags display a template block when the condition returns false. There can be only one else tag within an if tag.


Syntax


{% if <Conditions> %}

<Template Block>

{% else %}

<Template Block>

{% endif %}



Example:

InputParameter Value


'Green'



Input


My favorite animal is:{% if InputParameter == 'Orange' %}

Fox

{% else %}

Iguana

{% endif %}



Output


My favorite animal is:

Iguana