RE: goto
- Posted by Kat <gertie at PELL.NET> Feb 10, 2002
- 510 views
On 11 Feb 2002, at 16:14, mistertrik at hotmail.com wrote: > > Would it be difficult to be able to label loops? > > eg. > for a = 1 to 100 as Main do > for b = 1 to a do > for c = 1 to 40 do > > ... > > if <condition> then > exit Main > end if > end for > end for > end for > > --as in, would exit down to this comment. > > If that is possible, then it would make life a lot easier. That could > replace both a break and a continue. > > Take wind away from the goto crowd too... :P Hehe, it would be one of the disguised gotos, silly. With the actual goto, put the label before the loop, and goto it. Simple. Kat