LET

The LET command is now deprecated.

The LET command assigns the value of an expression to a variable.

 [LET] lvalue = expression [ONERROR statement]

 lvalue     - parameter, subscripted parameter, or EASI variable.
 expression - A numeric, string or vector valued expression.

LET command will not create new variables: it is an error to attempt to assign the value to an undefined variable.

The LET keyword is optional.

The ONERROR clause can be used to trap errors that occur during the evaluation of the expression or other errors during the execution of the LET statement. If the ONERROR clause is activated, the actual assignment will not take place, although some or all of the expression may have been evaluated.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.