Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-37

ability to skip iteration in a list

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 2.3.27-incubating
    • None
    • None

    Description

      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 -->
      </#if>
      do stuff here
      </#list>
      Thanks!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ivan.levchenko Ivan Levchenko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: