let
VARIABLE
=
VALUE

The let statement creates a local variable and assigns a value to it.


Parameters

This statement has two parameters:

variable – is the name of the variable that you want to create.

value – calculates the value that will be placed into the variable.


Description

This statement works just like an assignment, but the destination of the assignment is automatically created as a local variable. For example, this statement creates a local variable named x and assigns the value 23 to it.

let x=23

The value can be any data type, for example text like this:

let userName="Bob"

Note: This statement is identical to the assignlocal statement, but let uses an equal sign between the variable name and the value, instead of a comma.

Note: Local variables should never be used in a form.


See Also


History

VersionStatusNotes
10.0NewNew in this version.