[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: jump out of loop



PureBytes Links

Trading Reference Links

Make the loop index equal to the count -

for(i = 0; i < count; i++) {
  if( ExitLoopCondition ) {
     i = count;
  }
}

Jitu

--- In amibroker@xxxxxxxxxxxxxxx, "ed2000nl" <pablito@xxxx> wrote:
> hi,
> 
> unfortunalely the code I wrote earlier has some bugs in there and I 
> need to use loops.
> 
> Is there a way to jump out of a loop. In the code I am writing now 
I 
> got loops within loops. At some point inside an inner loop it finds 
> what it need and should jump back to the outer loop again.
> 
> Is this possible?
> 
> thanks,
> 
> Ed


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/