break


Break tags immediately exits a for loop's template block.


Syntax


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

<Template Block>

{% break %}

<Template Block>

{% endfor %}



Example:

Input


{% for error in InputParameters %}

{% if forloop.index == 2 %}

{% break %}

{% endif %}

Source - {{ error.Source }}

Time - {{ error.Time }}

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


{% endfor %}



Output


Source - Error 1

Time - Time 1

Details - Details 1