'Welcome to the Commodore Computer Wiki!'

LET

Keyword Token Version Category(s)
LET $88 1.0 Command and Statement

Syntax

[LET] var_name = value

Purpose

Variable declaration and assignment.

Notes

The keyword LET is optional. Presumably provided to be compatible with BASIC from other companies.

var_name must not be a reserved variable, but otherwise any name meeting the criteria for a variable name is valid.

The var_name is created if it does not exist. Regardless, it is (re)assigned the value of value.

value can be a literal, a variable, or an expression. The only restriction is the type of value must match the type of var_name and enough memory must be available.

See also DIM, DEF


This page is a member of Commodore BASIC