Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@apache.org Received: (qmail 41681 invoked from network); 6 Sep 2002 16:12:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Sep 2002 16:12:58 -0000 Received: (qmail 29387 invoked by uid 97); 6 Sep 2002 16:13:27 -0000 Delivered-To: qmlist-jakarta-archive-velocity-user@jakarta.apache.org Received: (qmail 29351 invoked by uid 97); 6 Sep 2002 16:13:27 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 29328 invoked by uid 98); 6 Sep 2002 16:13:26 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Authentication-Warning: exchange2.mtview.reasoning.com: openmail owned process doing -bs X-OpenMail-Hops: 1 Date: Fri, 6 Sep 2002 09:12:54 -0700 Message-Id: Subject: RE: Is there a way to tell when iterating in #foreach if you have com e to the last element. MIME-Version: 1.0 From: Joshua.Levy@reasoning.com TO: velocity-user@jakarta.apache.org Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline ;Creation-Date="Fri, 6 Sep 2002 09:12:54 -0700" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > Maybe the velocity team can plug in a > $hasNext = true|false > as it already maintains a loop $velocityCount variable. If you do this, then I vote for $velocityHasNext or something else which minimizes the namespace confusion. With velocity, you are already dealing with the Java namespace, and the velocity macro/variable namespace. It would be nice if all the velocity created variables had related names. Joshua Levy -- To unsubscribe, e-mail: For additional commands, e-mail: