Re: [wtr-general] How to exit from for loop
http://xkcd.com/292/ Regards, Tim Sent from my mobile ... On 19/03/2011, at 1:44 AM, Dave McNulla wrote: > Another Ruby question. > > You could try a break: > http://www.wellho.net/mouth/962_Breaking-a-loop-Ruby-and-other-languages.html > > My favorite is goto > > for i in1..5 > blah blah blah > goto funnyfarm if i.am.crazy > end > > :funnyfarm > puts "help, I'm in a batch script and I can't get out" > > Sorry, just having a little fun this morning. > > Dave > -- > Before posting, please read http://watir.com/support. In short: search before > you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] How to exit from for loop
Thanks It works. aravind On Fri, Mar 18, 2011 at 8:14 PM, Dave McNulla wrote: > Another Ruby question. > > You could try a break: > > http://www.wellho.net/mouth/962_Breaking-a-loop-Ruby-and-other-languages.html > > My favorite is goto > > for i in1..5 > blah blah blah > goto funnyfarm if i.am.crazy > end > > :funnyfarm > puts "help, I'm in a batch script and I can't get out" > > Sorry, just having a little fun this morning. > > Dave > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] How to exit from for loop
Another Ruby question. You could try a break: http://www.wellho.net/mouth/962_Breaking-a-loop-Ruby-and-other-languages.html My favorite is goto for i in1..5 blah blah blah goto funnyfarm if i.am.crazy end :funnyfarm puts "help, I'm in a batch script and I can't get out" Sorry, just having a little fun this morning. Dave -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] How to exit from for loop
Hi Is there any command like "exit" to come out of For loop before even finishing the iterations. thanks aravind -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com