Lasso Soft Inc. > Home

[Global]

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.

  • Syntax
  • Parameters
[Global: 'GlobalVariableName']

[Global: 'GlobalVariableName'='Value']
Optional Parameters
Variable Name If only a single name is specified then the value of that global variable is returned.
Name/Value If a name/value pair is defined then the variable with the specified name will be set to the specified value.
Examples

To create a global variable and retrieve its 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']
Result:
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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft