Skip to content

LET

Syntax

[LET] <variable>=<expression>

Purpose

To assign the value of an expression to a variable.

Remarks

Notice the word LET is optional, i.e., the equal sign is sufficient when assigning an expression to a variable name.

Example

110 LET D=12
120 LET E=12^2
130 LET F=12^4
140 LET SUM=D+E+F

Or without LET:

110 D=12
120 E=12^2
130 F=12^4
140 SUM=D+E+F

See Also

  • SWAP - To exchange the values of two variables