# Multiply Variable

**Multiply Variable** node is designed to perform multiplication operations on a specified variable and store the result back in the same variable. This node is useful for scaling up values, applying factors, or performing compound calculations within your workflow.

### Properties Panel

| **Field**     | **Description**                                         | **Required** |
| ------------- | ------------------------------------------------------- | ------------ |
| Node name     | [Node Name](/flow-builder/node-name.md)                 | true         |
| Variable Name | The name of the variable whose value will be multiplied | true         |
| Value         | The value by which the variable will be multiplied      | true         |

### Usage

1. Specify the name of the variable whose value you want to multiply.
2. Enter the value (the value by which the variable will be multiplied).

### Behaviour

* The node will retrieve the current value of the specified variable.
* It will then multiply this value by the provided multiplier.
* The result of the multiplication will be stored back in the same variable, overwriting its previous value.
* If the variable doesn't exist, it'll raise an error.

### Returns

The node updates the value of the specified variable with the result of the multiplication. You can access this updated value using Magical Autocomplete (e.g., `$.variables.<variable_name>`) in any node below this node.

### Example

Let's say you want to apply a 20% increase to a price:

1. Set Variable name to `$.variables.product_price`
2. Set Multiplier to `0.5`

If it exists and `product_price` was `10`, it will now be `5`.

### Best Practices

* Ensure that the variable you're dividing contains a numeric value to avoid type conversion errors.
* Consider adding a check for division by zero before this node if there's any chance the divisor could be zero.
* Ensure that the variable is initialised earlier


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cosmocloud.io/flow-builder/node-types/variable-nodes/mathematical/multiply-variable.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
