-
Notifications
You must be signed in to change notification settings - Fork 0
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.
Algo (c) Larry Tang, 2019.
Commercial use of Algo must include the LICENSE
file in the same directory as the executable.
Standard Library Documentation: