ID:151174
 
is there any kind of GOTO like in BASIC?


I want it like this:

if(bla=blaha) //1
ha ha ha
else
"goto" 1


how?
On 2/24/01 11:15 am Kaidorin wrote:
is there any kind of GOTO like in BASIC?


I want it like this:

if(bla=blaha) //1
ha ha ha
else
"goto" 1


how?

Yeah
just do like this
mob/proc/InfLoop()
doagain
src << "Your stuck in a loop!"
sleep(10)
goto doagain

Infact its exactly like in QBASIC, except I think in QBASIC you need to have a : in front of the label or something like that right?
In response to Ebonshadow
thanks! you saved me a headache ;>
In response to Kaidorin
On 2/24/01 11:22 am Kaidorin wrote:
thanks! you saved me a headache ;>

Here's a tip for this sort of thing:

In DreamMaker, hit F1 and the help system comes up. In the Topics or Search tab, type goto, and you will get the full documentation for it!