The LET keyword is optional. The variable can be a numeric scalar or a numeric array element, a string, a string array element or a sub-string. It can appear on both sides of the equals sign. One assignment is performed in a LET statement. Any other equal signs are relational operators in expressions.
If the variable is of type INTEGER, the value of the numeric expression is rounded to an integer. If the value is too large for an INTEGER, an error is generated.
If the string expression length is greater than the dimensioned length of the string, an error is generated. If the assignment is to a sub-string, the string expression length is truncated or blank filled on the right to fit the destination sub-string. If only the sub-string start position is given, the string expression is assigned to the sub-string and the length of the string variable is set.