IF single-line conditional branch:
IF multi-statement single line
IF single-line single-statement alternatives
BASIC Anywhere Machine's GOSUB implementation allows using numeric expressions for dynamic line numbers or using string expressions for ...
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.