How to end a program arbitrarily?
-
Stupid question time...How do you end a program early based on a user's choice? There doesn't appear to be an "end" keyword in FUZE.
-
Not a stupid question. No there is no end keyword. You can set a flag and exit your main loop
finished = false while !finished loop if userinput == "quit" then finished = true endif repeat
-
@pianofire This is super useful, can you add it to the tips section?
-
@pianofire Ah, of course...How did I forget that? Flags make it easy to turn on and off whatever bits of your code you need running depending on the situation. Once again, thank you!