$Getg: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (Mlarocca moved page $GETG to $Getg: Lower case change)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
</li>
</li>
</ul>
</ul>
<p>Refer to [[Global Features#Using global string variables to tailor a request|Using global string variables to tailor a request]] for a detailed explanation of global variables and examples of the $GETG function within a request. </p>
<p>Refer to [[Global features#Using global string variables to tailor a request|Using global string variables to tailor a request]] for a detailed explanation of global variables and examples of the $GETG function within a request. </p>
 
[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Latest revision as of 17:49, 21 July 2014

The $GETG function retrieves information stored by a $SETG function in the same request or an earlier request.

The $GETG function takes a global variable name as its one argument. The global variable table is searched for a variable with the name given by the argument. The value of the function is the value of the global variable if it is found or a null string (two quotes with no space between them) if it is not found. $GETG ('X') does not distinguish between the following situations:

  • There is no variable with the name X in the table.
  • There is a variable in the table with the name X whose value is a null string (a $SETG ('X',) that had been executed earlier).

Refer to Using global string variables to tailor a request for a detailed explanation of global variables and examples of the $GETG function within a request.