I guess I'll remain in the loop then
It would be a nice feature though

Thanks for the answers
it's appreciated
JF

Will Glass-Husain wrote:

Yes there is. It's a foreach loop, not a for or a while. Just sit and wait. Just like Martha Stewart. Eventually your sentence ends.

No more code than Jean Francois' example:

#foreach( $mycounter in [10..1] )
   #if ($mycounter > 5)
        display some text
 #end
#end

WILL


----- Original Message ----- From: "Claude Brisson" <[EMAIL PROTECTED]>
To: "Velocity Users List" <[email protected]>
Sent: Friday, July 08, 2005 9:43 AM
Subject: Re: for loops break?


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" <[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to