ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Smits <pierre.sm...@gmail.com>
Subject Re: howto escape from <iterate list in simple-method
Date Wed, 22 Jun 2011 09:42:18 GMT
Thanks for the quick reply.

But wouldn't the <return /> end the entire simple method? In stead of just
the section of code that has the iteration?

Regards,

Pierre

2011/6/22 prasanth r <prasanth.sunrise@gmail.com>

> Hi Pierre,
>
> I tried it before I could not find any <break> or <continue> in miniland
> iterator.
>
> But we can use <return/> statement to come out of the simple method.
>
> thanks
> prasath rajan
> 9442369696
>
> On Wed, Jun 22, 2011 at 2:34 PM, Pierre Smits <pierre.smits@gmail.com
> >wrote:
>
> > Hi all,
> >
> > I am stumped... I need to iterate through a list to find the the first
> > entry
> > given a set of parameters in a simple-method, but how do I escape from
> the
> > iteration after having found the entry?
> >
> > I know that in groovy I can do a while loop and if I have found the entry
> I
> > can issue a 'break; and close the iteration. But how do I do this in the
> > interation in a simple-method?
> >
> > Regards,
> >
> > Pierre
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message