*menuvariableset()

Sets a variable to a specific value.

Syntax

*menuvariableset (variable, value)

Type

HyperMesh Card Previewer Command

Inputs

variable
A value from variable1 to variable20 indicating the parameter.
value
The value of the variable.

Example

Variables can be used to hold real or integer values. For example, to add the value of variable5 to the current value of variable1, the following command could be used:

*menuvariableset(variable1,[variable1+variable5])

Unlike the *variableset() command that sets a global value for the entire output section of the template, the *menuvariableset() command's value is only for the local scope of an entity as specified by the *beginmenu() and *endmenu() commands.