{"id":3719,"date":"2019-02-12T16:09:40","date_gmt":"2019-02-12T16:09:40","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/gval\/"},"modified":"2026-05-27T16:14:35","modified_gmt":"2026-05-27T21:14:35","slug":"gval","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/gval\/","title":{"rendered":"gval"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Retrieve and display the value of a CyFlex variable from shared memory.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>gval<\/strong> &lt;variable_label&gt; [-u]\u00a0<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 90.9422%; height: 24px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 21.58%; height: 24px;\">variable_label<\/td>\n<td style=\"width: 223.297%; height: 24px;\">Specify a variable label to retrieve. A CSAR variable label may also be specified.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 21.58%;\">-u<\/td>\n<td style=\"width: 223.297%;\">Optional. Specify this flag to include units when displaying the variable value.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<dl>\n<dd>\n<p><strong>gval<\/strong> a_label <br \/>\nRetrieves the value of the a_label variable.<\/p>\n<p><strong>gval<\/strong> -u a_label<br \/>\nRetrieves the value of the a_label showing the units for the variable.<\/p>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>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.<\/p>\n<p>gval can be used in place of gvar in script files.<\/p>\n<p>gval will use the variable format string when displaying INT_TYPE and REAL_TYPE variables.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/gvals\/\">gvals<\/a>, <a href=\"https:\/\/cyflex.com\/wp-content\/uploads\/CyFlex-Variables-Units-and-Computed-Expressions.pdf\">Variables, Units, and Computed Expressions<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Retrieve and display the value of a CyFlex variable from shared memory. Enter: gval &lt;variable_label&gt; [-u]\u00a0 Where: variable_label Specify a variable label to retrieve. A CSAR variable label may also be specified. -u Optional. Specify this flag to include units when displaying the variable value. Example: gval a_label Retrieves the value of the a_label [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3719","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3719"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3719\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}