# Variables Name

A variable can have a short name (like x and y) or a more descriptive name (age, carname, total\_volume). Rules for ChardScript variables:

* A variable name must start with a letter or the underscore character
* A variable name cannot start with a number
* A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and \_ )
* Variable names are case-sensitive (age, Age and AGE are three different variables)

#### Example

Legal variable names:

{% code lineNumbers="true" %}

```renpy
call myvar = "John"
call my_var = "John"
call _my_var = "John"
call myVar = "John"
call MYVAR = "John"
call myvar2 = "John"
```

{% endcode %}

Illegal variable names:

<pre class="language-renpy" data-line-numbers><code class="lang-renpy">call 2myvar = "John"
<strong>call my-var = "John"
</strong>call my var = "John"
</code></pre>

{% hint style="info" %}
Remember that variable names are case-sensitive
{% endhint %}

### Multi Words Variable Names

Variable names with more than one word can be difficult to read.

There are several techniques you can use to make them more readable:

### Camel Case

Each word, except the first, starts with a capital letter:

{% code lineNumbers="true" %}

```renpy
call myVariableName = "John"
```

{% endcode %}

### Pascal Case

Each word starts with a capital letter:

{% code lineNumbers="true" %}

```renpy
call MyVariableName = "John"
```

{% endcode %}

### Snake Case

Each word is separated by an underscore character:

{% code lineNumbers="true" %}

```renpy
call my_variable_name = "John"
```

{% endcode %}


---

# 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://gamingmod.gitbook.io/chardscript-docs/chardscript-tutorial/chardscript-variables/variables-name.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.
