IF single-line conditional branch:
IF multi-statement single line
IF single-line single-statement alternatives
I like your diagrams!Some BASIC's also allow a ":" immediately following the "then" as in:if condition then : stmt1 : stmt2 : stmtnAlso, 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).Thank-you! I rather like that multi-colon thing to make things stand out without being a distraction. Thank-you for sharing that little gem.
This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...
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.