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
string
Numeric Type: number
number
Sequence Type: list
list
Boolean Type: boolean
boolean
None Type: null
null
In ChardScript, the data type is set when you assign a value to a variable:
call x = "Hello World!"
call x = 20
call x = ["pass", 123456, "Hello"]
call x = true
call x = null
Last updated 3 years ago