[Locals] returns a map which contains an element for each local variable defined in a custom tag. The first element of each item in the map is the name of a variable defined in the current custom tag definition. The second item of each element in the map is the value for that variable.
[Locals]
Use the [Locals] tag. The following example defines two variables in a custom tag, then returns a list of those variables.
[Define_Tag: 'Test']
[Local: 'LocalVariable'='VariableValue']
[Local: 'OtherVariable'='OtherValue']
[Return: (Locals)]
[/Define_Tag]
[Test]
(map: (pair: (Localvariable)=(VariableValue))
(pair: (OtherVariable)=(OtherValue)))
Tag Link | [Locals] | Category | Variable |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | Map | Security | Tag |
Implementation | Internal | Sets | Lasso 6.0, Lasso 5.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