Show() displays the items that you specify in the log. Notice that when you show variables, the resulting message is the variable name, an equal sign, and its current value.
X = 1;
A = "Hello, World";
Show( X, A, "foo" );
x = 1
a = "Hello, World"
"foo"
Print() sends the message that you specify to the log. Print() is the same as Show() except that it prints only the value of each variable without the variable name and an equal sign.
X = 1;
A = "Hello, World";
Print( X, A, "foo" );
1
"Hello, World"
"foo"
Write() sends the message that you specify to the log. Write() is the same as Print() except that it suppresses the quotation marks around the text string, and it does not start on a new line unless you include a return character yourself with the \!N escape sequence.
Write( "Here is a message." );
Here is a message.
Write( myText || " Do not forget to buy milk." ); // use || to concatenate
Write( "\!NAnd bread." ); // use \!N for return
// use \!N for return
Here is a message. Do not forget to buy milk.
And bread.
The sequence \!N inserts the line breaking characters that are appropriate for the host environment. For an explanation of the three line breaking escape sequences, see Double Quotes in JSL Building Blocks.