Tag Link | $ 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 variable. It can be used to include the value of the variable within an expression or can be used on the left side of an assignment symbol to set the value of the 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 variable whose value should be returned or set. |
To set and retrieve the value of a variable:
Use the variable symbol $. The following example initializes a variable Result then sets and retrieves its value using the $ symbol.
<?LassoScript
Local: 'Result'=0;
$Result = 10;
Output: $Result;
?>
10