
-----------------------------------
jasonlin6868
Sun May 25, 2008 7:21 pm

How to rerun the program?
-----------------------------------
I have another question about how to rerun the program

-----------------------------------
gitoxa
Sun May 25, 2008 7:39 pm

RE:How to rerun the program?
-----------------------------------
Stick the entire program (Minus the variable declarations) and put it into a loop.

That being said, any initializations done need to be in the loop as well.

-----------------------------------
syntax_error
Sun May 25, 2008 10:06 pm

Re: How to rerun the program?
-----------------------------------

var gah
var boo
var hoo
process hahaNot

loop 

hahaNot
get gah * hoo

if boo = no then exit
end loop 


-----------------------------------
Saad
Mon May 26, 2008 6:22 am

Re: How to rerun the program?
-----------------------------------

var gah
var boo
var hoo
process hahaNot

loop 

hahaNot
get gah * hoo

if boo = no then exit
end loop 


How is that helpful? I mean
A) It doesn't run 
B) Theres no way to follow what your doing

To the Original Poster

Loop the program and exit if you don't want to continue

Example 
loop
    put "Type exit to stop"
    var input : string
    get input
    exit when input = "exit"  %% If the input was "exit" then we are going to kick ourselves out of the loop
end loop
