Tuesday, July 4, 2023

📚 IF syntax documentation in progress

IF single-line conditional branch:


IF multi-statement single line


IF single-line single-statement alternatives


IF multi-line multi-alternatives code blocks


codeBlockForCondition







2 comments:

  1. I like your diagrams!

    Some 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"

    ReplyDelete
    Replies
    1. 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.

      Delete

🖥 Fan Dance

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...