velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Is there a way to tell when iterating in #foreach if you have com e to the last element.
Date Fri, 06 Sep 2002 16:12:54 GMT
> 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: <>

View raw message