Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-903

Empty loops handling with #foreach() ... #else nothing #end

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: Engine
    • Labels:
      None

      Description

      Empty loops handling via #else for #foreach:

      #foreach($name in $people)
      $name is here
      #else
      nobody here
      #end

        Attachments

          Activity

            People

            • Assignee:
              claude Claude Brisson
              Reporter:
              claude Claude Brisson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: