gval

Purpose:

Display/return the value of a CyFlex variable

Enter:

gval <a_label>
or
gval [-u] <a_label>

Where:

a_label Specify a variable label. A CSAR variable label may also be specified.
-u Optional. Specify this flag to include units when displaying the variable value to the terminal.

Example:

gval a_label
Retrieves the value of the a_label variable.

gval -u a_label
Retrieves the value of the a_label showing the units for the variable.

Notes:

The type of variables that can be displayed include: REAL, INTEGER, LOGICAL, STRING, STATISTIC, COMPOSITION, PROPERTY, EMISSION, REAL ARRAY, INTEGER ARRAY, LOGICAL ARRAY, and STRING ARRAYvariables.

gval can be used in place of gvar in script files.

gval will use the variable format string when displaying INT_TYPE and REAL_TYPE variables.

See Also:

Variables, Units, and Computed Expressions