Command Reference

Assign Value

Assigns a value (or the result of an expression) to a variable.

Action ID: 14
Action Category: Variables

Settings

Variable name

The name of the variable to store the result in. If the variable does not already exist, it will be created automatically.

(More info)

Value

The value to assign to the variable.

Evaluate value as expression

If checked, the text in Value will be interpreted as an expression at run time, and the result of this expression will be stored in the variable.

See the User's Guide for details on expression usage and syntax.

Build...

Opens the Build Expression dialog which provides a useful interface to help you build the expression.

NOTE

 

The Build button is only visible if the Evaluate value as expression checkbox is checked.

 SEE ALSO 

 

?

For more information on expressions, see Chapter 2: Key Concepts and Chapter 15: Expressions in the User's Guide.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

Error evaluating expression.

Missing value. A value was expected at position <<Start position of error>>.
<<Expression>>

2

Error evaluating expression.

Missing operator before open parenthesis. There is an operator missing before the open parenthesis at position <<Start position of error>>.
<<Expression>>

Example

None available.

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab