IF single-line conditional branch:
IF multi-statement single line
IF single-line single-statement alternatives
This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...
I like your diagrams!
ReplyDeleteSome BASIC's also allow a ":" immediately following the "then" as in:
if condition then : stmt1 : stmt2 : stmtn
Also, where there is 1 ":", there can usually be more.
For instance, try this in GW-BASIC:
if 1 then ::::: print "made it"
You'll see the "made it"
ARG! I'm only finding your message now (notification of your message buried deep in my emails).
DeleteThank-you!
I rather like that multi-colon thing to make things stand out without being a distraction. Thank-you for sharing that little gem.