ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Vijaywargiya <vijaywargiya.ash...@gmail.com>
Subject Re: howto escape from <iterate list in simple-method
Date Wed, 22 Jun 2011 10:20:56 GMT
+1 - Thanks Adrian.

--
Ashish

On Wed, Jun 22, 2011 at 3:42 PM, Adrian Crum <
adrian.crum@sandglass-software.com> wrote:

> A <break/> element would be a useful addition to mini-language. If anyone
> is interested in creating it, I will take a look at it.
>
> -Adrian
>
>
> On 6/22/2011 10:04 AM, Pierre Smits 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