freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Levchenko (JIRA)" <>
Subject [jira] [Created] (FREEMARKER-37) ability to skip iteration in a list
Date Wed, 26 Oct 2016 21:45:58 GMT
Ivan Levchenko created FREEMARKER-37:

             Summary: ability to skip iteration in a list
                 Key: FREEMARKER-37
             Project: Apache Freemarker
          Issue Type: Improvement
            Reporter: Ivan Levchenko

Sorely missing ability to skip through an iteration of a list and continue on with the rest
of the list. would like to write clean code like this:
<#list collection as element>
        <#if element.attr1 == "some_value"> 
                <#continue />  <#-- skip over this item and run next item in loop
    do stuff here

This message was sent by Atlassian JIRA

View raw message