VARVALSET Statement

Changes the value stored by a variable.

Syntax

VARVALSET variable TO expression [THEN statement(s) ELSE statement(s)]

Syntax Elements

variable A string containing the name of the variable whose value is to be changed.

expression An expression that evaluates to a numeric or string value.

Operation

The variable will not be updated if it does not exist, or if it is not otherwise legal to update.

The ELSE clause is taken if the variable cannot be updated for any reason

See also the VARTYPE, VARVAL and VARVALTYPE functions.

Go to top button