Shiny Language Reference

Language Reference > Basic Language


print

print expression;

 

Outputs a string to the Virtual Machine debug window

The PRINT statement evaluates the associated expression and displays its result in the Brass VM debug window.

 

Parameters

expression

This is any valid expression that can be reasonably converted to a string through implicit type conversion. It is also possible to supply variables of type FILE and WEB as the only expression, causing PRINT to display the location of the file or website stored in the variable.

 

Return Value

No return value, this is a statement.

 

Example Code

print "Appearing in the debug window";

print 1 + 2 + 3 * 4;

print MyNumber;

print "My number is " + MyNumber;