# Math Operations

Basic math operations are supported in ControlScript. You can make them between numbers and numeric variables (variables equal to a number).

You must separate it with spaces.&#x20;

<table><thead><tr><th width="570">Operation</th><th width="167">Is Correct?</th></tr></thead><tbody><tr><td><code>1 + 2</code></td><td>Yes</td></tr><tr><td><code>1+2</code></td><td>No</td></tr></tbody></table>

Here are the available operators at the moment:

<table><thead><tr><th width="113">Operator</th><th>Meaning</th><th>Example</th></tr></thead><tbody><tr><td><code>+</code></td><td>Addition</td><td><code>var x = 5 + 3</code></td></tr><tr><td><code>-</code></td><td>Subtraction</td><td><code>var x = 10 - 4</code></td></tr><tr><td><code>*</code></td><td>Multiplication</td><td><code>var x = 3 * 6</code></td></tr><tr><td><code>/</code></td><td>Division</td><td><code>var x = 20 / 4</code></td></tr></tbody></table>


---

# 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://control-blocks-mod.gitbook.io/control-blocks-mod-docs/controlscript/math-operations.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.
