Retrieves or sets the value of a global server-wide variable. Global variables are stored on a server-wide basis and persist even between page loads. They can be used to pass values from page to page or to store site-wide values.
The [Global] tag works exactly like the [Variable] tag, but allows global variables to be set or retrieved. If called with a variable name the value of that variable is retrieved. If called with a name/value pair, the specified global variable is set to the specified value.
Any variables set in the LassoStartup folder are automatically created as global variables.
[Global: 'GlobalVariableName']
[Global: 'GlobalVariableName'='Value']
Use the [Global] tag. This tag works exactly like the [Variable] tag except that it creates global variables that can be used on any page on a Web server. The following example creates a global variable 'myGlobal' and then retrieves its value.
[Global: 'myGlobal' = 'Shared value!']
... can be on another page ...
[Global: 'myGlobal']
Shared value!
Tag Link | [Global] | Category | Variable |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | Any, None | Security | Tag |
Implementation | LDML | Sets | Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft