Skip to content

Strings & Printing to Console

C272 edited this page Dec 18, 2019 · 3 revisions

To print to console, you can use the print command. This command is not a function, and is special compared to other similar actions.

A value can be printed using the command: print [value];

Example:

>> print "Hello World!";
Hello World!
>> print 12345 + 10;
12355

If you want to include endlines, quotes, carriage returns or tabs in your string, you can use the following escape codes:

\q - Quote (")
\n - Endline
\r - Carriage Return
\t - Tab

The print command can be used with all base data types, and is not restricted to just strings. It will also attempt to stringify any user defined data structures, however it is not guaranteed to succeed.