# ChardScript Data Types

### Built-in Data Types

In programming, data type is an important concept. Variables can store data of different types, and different types can do different things.

ChardScript has the following data types built-in by default, in these categories:

Text Type: <mark style="color:red;">`string`</mark>

Numeric Type: <mark style="color:red;">`number`</mark>

Sequence Type: <mark style="color:red;">`list`</mark>

Boolean Type: <mark style="color:red;">`boolean`</mark>

None Type: <mark style="color:red;">`null`</mark>

### Setting the Data Type

In ChardScript, the data type is set when you assign a value to a variable:

| Example                              | Data Type |
| ------------------------------------ | --------- |
| `call x = "Hello World!"`            | string    |
| `call x = 20`                        | number    |
| `call x = ["pass", 123456, "Hello"]` | list      |
| `call x = true`                      | boolean   |
| `call x = null`                      | null      |


---

# 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-data-types.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.
