velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: for loops break?
Date Fri, 08 Jul 2005 16:43:52 GMT
On Fri, 2005-07-08 at 09:22 -0700, Will Glass-Husain wrote:
> no, unfortunately.

Mwahahahaa, once you're trapped inside, there's no way out
(brrrrr.... it's freezing...)

--
Claude


> WILL
> 
> ----- Original Message ----- 
> From: "Jean Francois Chamard" <jfchamard@interstructure.ca>
> To: <velocity-user@jakarta.apache.org>
> Sent: Friday, July 08, 2005 8:53 AM
> Subject: for loops break?
> 
> 
> > Hi there,
> >    been using velocity for a while now. Is there a way to get out of a 
> > loop?
> > Perhaps it has been asked but I found nothing on the subject (guide, 
> > wiki, ...).
> > If there is, sorry about it.
> > 
> > Is there a way to do something like that?
> > #foreach( $mycounter in [10..1] )
> >    #if ($mycounter == 5)
> >       break; ?
> >    #end
> > #end
> > 
> > I've used velocity 1.4 but i'm now with 1.5 dev.
> > Thanks for your answer
> > JF
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message