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.sunr...@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.sm...@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 > > >