Is there a way to go back in code like if something isn't the way its supposed to be, to go back and go back through the code until everything works out?
like
if(blah == 0)
blah2 += 1
if(blah2 == 1)
world<<"wrong"
this is where I need to stop and go back to the beginning and do it again until I get to
if(blah2 == 3)
world<<"correct"
ID:178264
Jun 3 2002, 3:54 pm
|
|
Sounds like you are looking for a while loop.
if(blah == 0) while(blah2 < 3) blah2 += 1 world << "wrong" world << "correct" |
In response to Shun Di
|
|
also, you might want to mess with the world's loop var, if this proc runs like shun di has it, it will call an error after it runs for a while, I think the count is like 100 recurrences. Later, look it up in the help file, under
world(vars). |
In response to Shun Di
|
|
Shun Di wrote:
proc/Blah() // Make it a proc() to respawn Problem: This is a recursive call. You don't want to do it that way. If you restart the proc, and you're not using a loop construct like while(), then you should use spawn() to call the proc. Lummox JR |
proc/Blah() // Make it a proc() to respawn
if(blah == 0)
blah2 += 1
if(blah2 == 1)
world<<"wrong"
Blah() // Restart The Proc
if(blah2 == 3)
world<<"correct"
Try That.
Shun Di, Out