Game: various *mites: Four Equals Ten


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11604
Posted: 08:55am 13 Jan 2023      

  Quote  IF a = 1 THEN b = 0 : c = 0 : PRINT "test complete"


Personally I hate this syntax as it breaks any common sense rules within Basic (and certainly doesn't work in C)
If : is essentially the equivalent of a end-of-statement/newline how can c=0 be executed as part of the condition?

My advice and practice is always to have either a simple
IF condition THEN onestatement

or the normal IF ENDIF
Edited 2023-01-13 18:57 by matherp