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 program is a port (and slight mod) of the QB64pe program by SierraKen. (SierraKen's program shared with the QB64pe community in th...
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.