
The LET keyword is used to introduce new variables or to assign new values to existing ones.A variable generated with LET always has an initial value because every LET must be followed by the assignment operator. LET is mandatory for numeric and string variables. To generate arrays use the DIM statement.
The following code snippet, which is meant to be the top of a program, introduces and initializes two new variables a$ and b. In the third line, the existing variable a$ gets a new value.
LET a$ = "hello" LET b = 1 LET a$ = "world" REM and so on ...
With few exceptions, e.g. the READ statement, new variables must be generated with LET. If you omit LET and write only "x=y", the compilation is cancelled, program execution fails or the program behaves unpredictable.