Note:
You cannot initialize more than 100 variables (20 of each data type).
In TexScript, you can initialize several kinds (known as "data types" in TexScript) of variables.
| Name | Stores |
|---|---|
int |
Integer (whole number) |
string |
String of characters (word) |
char |
Character (letter) |
bool |
Boolean (true or false) |
In TexCode 1.4, char will be removed. Use string instead.
int:
Contains an integer (whole number). Cannot contain decimal numbers.
string:
Contains a string of characters (word). Can contain numbers, but will be treated as strings (not integers).
char:
Contains a character (letter). Contains escape characters and the 26 letters of the Latin alphabet used in American English.
bool:
Contains a boolean variable (true or false). Represented in the console by 1 (true) or 0 (false). However, when initializing, user must use the true or false identifiers, not 1 or 0, respectively.