mk90.basic.statements
Statement LET
Assign an integer to one variable.
Syntax
[LET] variable = expressionParameters
| Parameter | Meaning |
|---|---|
variable | One letter A–Z, case-insensitive. |
expression | A numeric expression; stored as a signed 16-bit bit pattern. |
Behavior
LET is optional. All 26 variables start at zero on each execution. Assignment evaluates its right-hand side before storing the result.
Example
10 A=2+3*4
20 LET B=A-1
30 PRINT A;",";BLimits and diagnostics
There are no multi-letter variable names, declarations, string variables or arrays.
See also
PRINT · FOR · Language syntax