Lasso Soft Inc. > Home

[Vars]

[Vars] returns a map containing every variable defined in a page. The keys for the map are the names of the variables. The value for each key is the current value for the specified variable. The returned map is read-only.

Note: Variable names which start with an underscore are used internally by Lasso and should generally not be modifed.

  • Syntax
  • Parameters
[Vars]
Examples

To display all the variable names that are defined for the current page:

Use the [Vars] tag to return a map of all variables, then cycle through them to display each variable name.

[Loop: (Vars)->Size]
  <br>[Output: (Vars)->(Get: Loop_Count)->First]
[/Loop]
Result:
<br>__html_reply__
<br>__result_code__
<br>__loop_count__
<br>__result_message__
<br>__http_header__
<br>__tag_registry__
Tag Link [Vars] Category Variable
Type Substitution Data Source Any
Support Abbreviation Version 5.0
Output Type Map Security None
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. > Home

 

 

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