I have a naive question to ask about inline constructions in BASIC (apologies in advance, if this is obvious).
Based on the SuperBASIC online manual [http://superbasic-manual.readthedocs.io/] many of the SuperBASIC flow-control constructions have both an inline short hand and a full form. So for example, the entry for IF notes two forms:
Code: Select all
IF condition {THEN | :} statement *[:statement]* [:ELSE statement *[:statement]*]
Code: Select all
IF condition [{THEN | :}] *[:statement]* ... [ELSE] *[:statement]* ... END IF
For example:
Code: Select all
100 INPUT a
110 IF a > 0 THEN PRINT "POSITIVE"
130 IF a > 20 THEN PRINT "REALLY POSITIVE!"
140 END IF
150 GOTO 100
Anyone shed any light on this? Thanks in advance,
Georgeo.