You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Pham Anh Tuan <an...@ichi-corp.jp> on 2006/03/23 08:27:25 UTC
How to stop a loop (#foreach)
Hi all,
I don't know how we can stop a loop or #foreach?
help me plz
thanks in advance
bowlkhin
Re: How to stop a loop (#foreach)
Posted by Pham Anh Tuan <an...@ichi-corp.jp>.
thanks for all your help, I will read document of IteratorTool.
again, thank all you, :)
bowlkhin
----- Original Message -----
From: <ap...@recks.org>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Thursday, March 23, 2006 10:19 PM
Subject: Re: How to stop a loop (#foreach)
> You should consider using the IteratorTool, look at
> the documentation at:
> http://jakarta.apache.org/velocity/tools/generic/
>
> Cheers,
> Christoph
>
> Pham Anh Tuan wrote:
>> Hi all,
>>
>> I don't know how we can stop a loop or #foreach?
>>
>> help me plz
>>
>> thanks in advance
>>
>> bowlkhin
>
> ---------------------------------------------------------------------
> 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
Re: How to stop a loop (#foreach)
Posted by ap...@recks.org.
You should consider using the IteratorTool, look at
the documentation at:
http://jakarta.apache.org/velocity/tools/generic/
Cheers,
Christoph
Pham Anh Tuan wrote:
> Hi all,
>
> I don't know how we can stop a loop or #foreach?
>
> help me plz
>
> thanks in advance
>
> bowlkhin
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: How to stop a loop (#foreach)
Posted by Will Glass-Husain <wg...@forio.com>.
There's no break or continue statement. You need to use an inner #if
statement that only evaluates for the first X elements.
WILL
On 3/22/06, Pham Anh Tuan <an...@ichi-corp.jp> wrote:
> Hi all,
>
> I don't know how we can stop a loop or #foreach?
>
> help me plz
>
> thanks in advance
>
> bowlkhin
>
--
Forio Business Simulations
Will Glass-Husain
wglass@forio.com
www.forio.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org