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

ability to skip iteration in a list

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 2.3.27-incubating
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: