The New Variable script command defines a new variable and initialize its value on the first execution. Once the variable is created and initialized, it is not reset each time the script may be automatically repeated.
Syntax: | New Variable | Literal | init | Expression | Comment |
Example: | ![]() |
well | init | Create a new variable called well | |
Example: | ![]() |
metric | init | 0 | Create a new variable called metric with initial value 0 |
Example: | ![]() |
today | init | Left(timestamp,8) | Create a new variable for today, using an expression to initialize it to today's date |