mk90.basic.statements

Statement LET

Assign an integer to one variable.

Syntax

[LET] variable = expression

Parameters

ParameterMeaning
variableOne letter A–Z, case-insensitive.
expressionA 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;",";B

Limits and diagnostics

There are no multi-letter variable names, declarations, string variables or arrays.

Status-code reference.

See also

PRINT · FOR · Language syntax