else


Located at the end of a for loop, else tags display a template block only if there are no items within the array.


Syntax


{% for <Item> in <Array>[ Options] %}

<Template Block>

{% else %}

<Template Block>

{% endfor %}



Example:

Input


{% for error in InputParameters %}

Source - {{ error.Source }}

Time - {{ error.Time }}

Details - {{ error['Error Details'] }}

{% else %}

No errors!

{% endfor %}



Output


No errors!