$Getg: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
mNo edit summary |
||
Line 7: | Line 7: | ||
</li> | </li> | ||
</ul> | </ul> | ||
<p>Refer to [[Global | <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]] |
Revision as of 19:51, 2 January 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.