- If A and B then do something
- If A and C then do something else
- Do something else
A concrete example:
11370 IF (S$="TWI" )AND (TW=0) THEN PRINT"CROAK":GOTO11407
11371 IF (S$="TWI") AND (TW<>0) THEN PRINT"You don't have any":GOTO10000
Basically this should be like that:
IF (S$="TWI") THEN IF(TW=0)THEN PRINT"CROAK":GOTO11407 ELSE PRINT"You don't have any":GOTO10000
The question is: Without scoping operator, how do we know with certainty how the ELSE are handled?
Is it doing the ELSE regarding the S$="TWI" check, or the TW=0 check?
Basically the source code is littered with small one liner functions jumps just to handle this.
If someone has a definitive guide on how to handle multi-level IF THEN ELSE; please share
