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: string

Numeric Type: number

Sequence Type: list

Boolean Type: boolean

None Type: null

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

Last updated