Here's my questions:
Alice 2.0
Code:
While MyVariable=true
// lots of code that works
if ask user for yes no "try again?"
MyVariable set value = true
// could leave this blank since MyVariable is already true
else
MyVariable set value = false
//while ends here
So basically when the user says "yes" it will loop and when the user says "no" it will cause the while to not run. However when I test it no matter what I choose it will loop back. I know I'm missing something but it's not jumping out at me. Any help is appreciated.
Second I have 2 variables that are storing integers, when it asks the user for input if they enter nothing it goes to null. I do not see a way to stop Alice from outputting a "bug" and stopping it from crashing. I tried setting up an if/else statement to look for <=0 but it will not get that far. Anyone have a solution to null input?
Thanks.