> For the complete documentation index, see [llms.txt](https://gamingmod.gitbook.io/chardscript-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gamingmod.gitbook.io/chardscript-docs/chardscript-tutorial/chardscript-data-types.md).

# 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      |
