LassoScript Utility
Basics Browse Detail

/= Division Assignment

Tag Link /= Division Assignment Category Symbol
Type Symbol Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

/= divides the value of the right parameter by the value of the left parameter and sets the left parameter to the resulting value. The left parameter should be a variable that contains a decimal or integer value.

This symbol performs mathematical division if both parameters contain decimal or integer values. The result will be a decimal if either parameter is a decimal value.

This symbol cannot be used with string values. The right parameter must not be equal to 0.

Note: If the parameter on the right hand side of the symbol is a negative literal it should be surrounded by parentheses. For example, ($var /= (-1)).

Syntax

[(Variable: 'Left_Parameter') /= Right Parameter]

<?LassoScript
(Variable: 'Left_Parameter') /= Right_Parameter;
?>

<?LassoScript
$Left_Parameter /= Right_Parameter;
?>

Parameters

Required Parameters
Left_Parameter The variable in which the value should be stored.
Right_Parameter The value by which the variable should be divided.

Examples

To divide a variable by a value:

Use the division assignment symbol /=. The variable will be divided by the value and no result will be returned to the format file. The following example divides the variable Result by 5. The value of the variable is then displayed.

<?LassoScript
  Variable: 'Result'=10;
  $Result /= 5;
  Output: $Result;
?>

2