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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • Engine
    • None

    Description

      Empty loops handling via #else for #foreach:

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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cbrisson Claude Brisson
            cbrisson Claude Brisson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment