Let                                                                                                           Statement

 

LET varName=expression

 

Description

Assigns the results of an arithmetic or string expression to the variable which occurs on the left side of the equal sign. expression may be any combinformation of arithmetic operators, variable names, array names, functions and parentheses.

 

LET is assumed if you supply a statement of the :

Varname=expression

The following 2 statements are equivalent:

Let x=2 * y

X=2 * y

 

Example

Let salary=commisionRate * unitsSold

Let monthlySales(i)=monthlyUnits(i) * averageSalesPrice

Let x=sqrt(Abs(distance) / milesPerHour) ^ 2)

name=Proper(name)