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

228 FALSE Purpose Sometimes the computer has to decide whether or not something is true. For example: 10 X=12 20 IF X=20 THEN PRINT "X EQUALS 20" Clearly, in this example, the statement x=20 is false. As program will never print X EQUALS 20 . 100 X=12 110 REPEAT 120 PRINT "HELLO" 130 UNTIL X=20 would repeatedly print HELLO because X will never be anything other than 12. X=20 is FALSE . The same effect can be achieved by writing 110 REPEAT 120 PRINT "HELLO" 130 UNTIL FALSE which means repeat for ever. In fact, the computer has a numerical value of FALSE , which is zero. Thus PRINT FALSE Similarly will print 0 . PRINT 5=4 will also print 0 , since 5=4 is false.

It is often useful to say in a program for example CLOCKSET = FALSE and then later you can say IF CLOCKSET THEN PRINT "THE CLOCK IS CORRECT"