The String Data Type is used to represent text. All strings must appear inside Text / " delimiters and are limited to Printable ASCII Characters only. Strings can be combined with the Concatenate / .. operator along with Booleans, Integers or Floats to create Expressions. Special Note: The Double Quote ( " ) symbol is currently not allowed inside strings.
The short syntax structure uses the word STR:
NEW STR VARIABLE = VALUEThe long syntax structure uses the word STRING:
NEW STRING VARIABLE EQUAL TO VALUENEW STR x = "Hello World!"
PRINTLN x // Displays "Hello World!"NEW STR x = "Hello World!"
NEW STR y = x
PRINTLN y // Displays "Hello World!"NEW STR a = "Hello"
NEW STR b = " "
NEW STR c = "World!"
PRINTLN a .. b .. c // Displays "Hello World!"NEW BOOL a = TRUE
NEW INT b = 1
NEW FLOAT c = 1.0
NEW STR d = a .. b .. c
PRINTLN d // Displays "TRUE11.0"NEW STR x = TRUE // Runtime error! Cannot assign Boolean Literal to String Data Type
PRINTLN x // This line is not executed because the program crashed!NEW STR x = 1 // Runtime error! Cannot assign Integer Literal to String Data Type
PRINTLN x // This line is not executed because the program crashed!NEW STR x = 1.0 // Runtime error! Cannot assign Float Literal to String Data Type
PRINTLN x // This line is not executed because the program crashed!