Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Strings

Weld is the canonical string type. String is an alias for Weld; both names resolve to the same internal type.

Example:

Weld Name = "Sydrogen";
String Alias = Name;

String literals use double quotes:

"Hello"

Strings can be passed to Print:

Print("Hello, World!");

String Escapes

String literals support:

SequenceMeaning
\nNewline
\tTab
\rCarriage return
\0Null byte
\\Backslash
\"Double quote

Example:

Weld Line = "Hello\nWorld";

See String Interpolation for embedding values into strings.


← Previous Next →