*= Multiplication Assignment

Symbol

Symbol

Preferred

5.0

*= multiplies the value of the right parameter by the left parameter and sets the left parameter to the resulting value. The left parameter should be a variable that contains a string, decimal, or integer value.

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

This symbol repeats a string if the left parameter is a string and the right parameter is an integer value. The return value is the string repeated the specified number of times.

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)).

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

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

<?LassoScript
  $Left_Parameter *= Right_Parameter;
?>