Lasso Soft Inc. > Home

[Variable]

[Variable] sets or returns the value of a variable.

When called with the name of a variable as a single value parameter then the current value for that variable is returned.

When called with a name/value parameter then a variable is created with the specified name and value.

  • Syntax
  • Parameters
[Variable: 'Variable Name']

[Variable: 'Variable Name' = 'Variable Value']
Optional Parameters
Variable Name The name of the variable for which the current value should be returned.
Variable Name and Value A variable with the specified name is created and set to the specified value.
Encoding Keyword Only affects the value of a variable which is returned, not the value of a variable which is set.
Examples

To create a variable:

Specify the name of the variable within a [Variable] tag. The variable will be created with the specified value. The following example sets the variable Price to 10.00. No value is returned.

[Variable: 'Price' = 10.00]

To return the value of a variable:

Specify the name of the variable within the [Variable] tag. The following example returns the value for the variable 'Price'. If the variable has not been set it will be created and set to Null.

[Variable: 'Price']
Result:
10.00
Tag Link [Variable] Category Variable
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type Any Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0,LDML3x

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