statement/LET statement/LET
NAME
LET -- Sets a value to a variable
ABBREVIATION
l <shift> E
SYNOPSIS
LET <variable>=<expression>
FUNCTION
The word LET is hardly ever used in programs, since it is not necessary,
but the statement itself is the heart of all BASIC programs. Whenever a
variable is defined or given a value, LET is always implied. The
variable name which is to get the result of a calculation is on the left
side of the equal sign, and the number or formula is on the right side.
INPUTS
<variable> - name of the target variable
<expression> - number or formula to be stored in variable (<variable>)
RESULT
Given value is stored to the given variable.
EXAMPLES
10 LET A=5
20 B=6
30 C=A*B+3
40 D$="HELLO"
LET is implied (but not necessary) in lines 20, 30, and 40.
NOTES
None
BUGS
None
SEE ALSO
None