# Run Equation on Variable

## **Run Equation on Variable**

Run an equation using the value of a custom variable. The custom variable will be set to the result of the equation.

## Custom Variable

The Custom Variable to run the equation on.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F0eqTziOitlGTCMTMsuCQ%2FScreenshot%202023-02-03%20at%203.22.31%20PM.png?alt=media&#x26;token=cfc94d0c-fa38-40c1-9401-b452ab28bd27" alt=""><figcaption></figcaption></figure>

## Round Result

You can use this to round the variable to the nearest whole number (true), or a decimal (false).

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fppj3TYoYu3q5oL92PdEd%2FScreenshot%202023-02-03%20at%203.24.24%20PM.png?alt=media&#x26;token=bccb0d6a-3a92-4abd-9d44-29df508cdfba" alt=""><figcaption></figcaption></figure>

## Equation

You can use this to perform a calculation on your variable. See the list of examples below.

| Sign                    | Representation                                                   |
| ----------------------- | ---------------------------------------------------------------- |
| var + 5                 | Adds the value of 5 to your numbered variable.                   |
| var \* 2                | Multiplies the value of your variable by 2.                      |
| var / 2                 | Divides the value of your variable by 2.                         |
| var - 5                 | Subtracts the value of your variable by 5.                       |
| var \* (5+2)            | Multiples the value of your variable by 5+2 (7).                 |
| var + {random\_\[1,10]} | Adds the value to your variable by a random number from 1 to 10. |

{% hint style="warning" %}
Your variable can go into a negative.
{% endhint %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F3prUlh6KeQFkwJKWtRQj%2FScreenshot%202023-02-03%20at%203.31.47%20PM.png?alt=media&#x26;token=6dab415c-2073-4a5b-bd9e-882bbe8abafc" alt=""><figcaption></figcaption></figure>

In this case, the value of the variable is increasing by 3 plus 6, divided by 6, minus a random number from 1 to 5.

{% hint style="info" %}
Use any combination of numbers and operations to add/subtract/multiply/divide your variable.
{% endhint %}
