Tag Link | # Local Variable | Category | Symbol |
---|---|---|---|
Type | Symbol | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Any | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
# returns the value for a local variable. It can be used to include the value of the local variable within an expression or can be used on the left side of an assignment symbol to set the value of the local variable.
[Output: #Right_Parameter]
<?LassoScript
Output: #Right_Parameter;
?>
[#Right_Parameter = New Value]
<?LassoScript
#Right_Parameter = New Value;
?>
Required Parameters | |
---|---|
Right_Parameter | The name of the local variable whose value should be returned or set. |
To set and retrieve the value of a local variable:
Use the local variable symbol #. The following example initializes a local variable Result then sets and retrieves its value using the symbol.
<?LassoScript
Define_Tag: 'Example';
Local: 'Result'=0;
#Result = 10;
Return: #Result;
/Define_Tag;
?>
10