Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Can I do a loop in this way?

Author
Message
Santi
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location: Spain
Posted: 24th Jan 2003 19:46
Can I write a loop (with do - loop) into another one??. I mean:

Do
.......
.......
Do
.......
.......
loop
.......
loop
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 24th Jan 2003 21:28
try it, itd only take 5 seconds........anyway - YES!!!!

Yum! Yum! Yum! Yum!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 24th Jan 2003 22:10
You can nest any number of loops of any type, but if they are different types of loops you cant do this:

Do
for x=1 to 5
loop
next x

that will return an error

Login to post a reply

Server time is: 2024-05-05 00:58:02
Your offset time is: 2024-05-05 00:58:02