Tag Link | + Addition (Concatenation) | Category | Symbol |
---|---|---|---|
Type | Symbol | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | String, Decimal, or Integer | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
+ adds the value of the right parameter to the value of the left parameter and returns the resulting value.
This symbol performs mathematical addition if both parameters contain decimal or integer values. The result will be a decimal if either parameter is a decimal value.
This symbol performs string concatenation if either parameter is a string. The result is the left parameter followed by the right parameter.
Note: If the parameter on the right hand side of the symbol is a negative literal it should be surrounded by parentheses. For example, (4 + (-1)).
[Output: Left_Parameter + Right_Parameter]
<?LassoScript
Output: Left_Parameter + Right_Parameter;
?>
[Variable: 'Result'=Left_Parameter + Right_Parameter]
<?LassoScript
(Variable: 'Result') = Left_Parameter + Right_Parameter;
?>
<?LassoScript
$Result = Left_Parameter + Right_Parameter;
?>
Required Parameters | |
---|---|
Left_Parameter | The value to be added. |
Right_Parameter | The value to be added |
To output the sum of two values:
Use the addition symbol +. The following example outputs the result of adding 10 and 5.
[Output: 10 + 5]
15