LET

LET

The LET command is used to assign value to a specific variable. The expression is evaluated and assigned to each variable in the variable list.
Format
LET <variable> [,<variable>]* = <expression>
The variable types must match the expression type or an error message will be displayed.
Error: Poorly formed expression.
When a value is assigned to a string variable with a sub-string qualifier, it replaces the value of the sub-string qualifier. The length of the value of the string variable may change as a result of this replacement.
Parameters
N/A
Example
This is an example of how to use the
LET
command:
10 LET A$= "1234" 15 LET A$(2:3)= "55" ! A$ NOW = 1554 20 LET A$(2:3)= "" ! A$ NOW = 14 10 LET A$= "1234" 15 LET A$(2:3)= A$(1:2) ! A$ NOW = 1124 10 LET A$= "1234" 15 LET A$(2:1)= "5" ! A$ NOW = 15234
Comments
This can be an interactive command that takes effect as soon as it is received by the printer, or a program command that is preceded by a line number.