VarunGrazitti
Do you really need to add another variable? (crt)
Won't this be enough?: <#if recent_index == 4><#break></#if>
Synopsis
<#list sequence as item>
...
</#list>
Where:
- sequence: Expressions evaluates to a sequence or collection
- item: Name of the loop variable (not an expression)
You can use the list directive to process a section of template for each variable contained within a sequence. The code between the start-tag and end-tag will be processed for the 1st subvariable, then for the 2nd subvariable, then for the 3rd subvariable, etc until it passes the last one. For each such iteration the loop variable will contain the current subvariable.
There are two special loop variables available inside the list loop: