Lasso Soft Inc. > Home

[Locals]

[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.

  • Syntax
  • Parameters
[Locals]
Examples

To return a list of all variables defined in a custom tag:

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]
Result:
(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 LCAPI Sets Lasso 7.0, 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. > Home

 

 

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