Saturday, February 4, 2023

❇ LET

The LET statement was implemented such that it could only handle one value-to-variable assignment.

Now, the LET statement allows multiple value-to-variable assignments.


For example:

LET a$ = "howdy",  b$ = "there"

Taking advantage of line continuation, and the LET keyword becomes useful as a visual marker indicating the declaration or variables and value assignments:

LET a$ = "howdy", _

    b$ = "there"


As was the case before, the LET keyword is optional (when declaring and assigning a value to one, and only one, variable.



No comments:

Post a Comment

🖥 Spiralling Text (old-school sine wave)

This is a mod of a program Richard Keijzer wrote in TRS-80 Level II BASIC (44 years ago) and recently shared with the BASIC Programming Lang...