Invalid local variable definition

Explanation of error:

This formula includes a local variable with an invalid name - you cannot use a reserved word such as "let", "low", "true" or "try" as the name of a local variable - or the syntax of a Let statement in the formula that defines a local variable is invalid.

Examples:

Let let = 42; Let var = 43; var * 2

In this example, the first local variable has been given an invalid name: "let".

Let var 42; var * 2

In this example, the Let statement that defines the local variable is missing "=".

How to resolve this error:

Examine the formula and ensure that each local variable has a name that is valid and that the syntax of the Let statements in the formula that define local variables is valid.

The first example above could be corrected by renaming the first local variable, resulting in (for example) Let locvar = 42; Let var = 43; var * 2.

The second example above could be corrected by adding "=" to the Let statement that defines the local variable, resulting in Let var = 42; var * 2.

Related Topics:

The components of a formula

Simplifying complex formulae using local variables