Yeah I went back to doing a for() loop

Bit of a pain though 

-----Original Message-----
From: Kevin Valdek [mailto:[email protected]] 
Sent: Saturday, 5 December 2009 11:55 PM
To: MooTools Users
Subject: [Moo] Re: Break out of an each loop

Except calling empty() on the array or collection each time you brake
is probably something you don't want to do.
Instead, consider using the good old for loop, where the break
statement works fine.

http://mooshell.net/nM8SS/1/

Kevin

On Dec 5, 1:38 pm, Dirar Abu Kteish <[email protected]> wrote:
> What are you trying to do? if you have an array of any kind, you can set a
> variable that simply say if you want to continue with the function or not
or
> do as in herehttp://mooshell.net/NcKYE/1/
>
> On Sat, Dec 5, 2009 at 1:21 PM, Steve Onnis <[email protected]>
wrote:
> >  Is there a way to exit out of an each() loop?  i have tried "break" but
> > doesnt work
>
> > Steve
>
> --
> Dirar Abu Kteish
> Zan Studio
> Web Development Manager
> Mob.:+970-597-100118
> website:www.zanstudio.com

Reply via email to