I also have a question about logic in if statements.
I was trying to get valid a valid number from an input statement.
Do
' Do some stuff
INPUT "What display mode would you like to select? (1-99, 0 for quit): "; number
IF number = 0 THEN Exit
IF number > 1 AND number < 99 THEN
'do some stuff
ENDIF
' Rest of code follows
LOOP
However, I get an IF..THEN Construct ERROR, at "IF number > 1 AND number < 99 THEN". What am I doing wrong? Any pointers or tips?
What I am tryin to do is figure out if the input is a 0 first so it will exit the loop. Then figure out if the number is between 1 and 99, and if it is do some other stuff.
Thanks again!