Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

213 ELSE Purpose To provide an alternative course of action. ELSE can be used following an IF...THEN statement, an ON...GOTO statement, and an ON...GOSUB statement. See the pages describing the associated keywords and chapter 16 for more details. Examples 560 IF length > 0 THEN PRINT "OK" ELSE PRINT "No good" 100 IF A B THEN C=D ELSE PRINT "Values match" Description Part of the IF...THEN...ELSE structure. Syntax IF [ THEN ] [ ELSE ] or ON GOTO {, } [ ELSE ] or ON GOSUB {, } [ ELSE ] Associated keywords IF , THEN , ON