<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Print</title><revhistory><revision><revnumber>2</revnumber><date>2015-08-09 20:54:40</date><authorinitials>LKD70</authorinitials></revision><revision><revnumber>1</revnumber><date>2013-08-05 23:25:52</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage: </para></entry><entry colsep="1" rowsep="1"><para>print Message to be printed </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>print Hi,this is a test </para></entry></row></tbody></tgroup></informaltable><para>Allows you to print a message into the log window. This script command has been replaced by the more powerful <ulink url="http://guide.neatportal.com/wiki/Print/wiki/Echo#">Echo</ulink> command, and any new scripts should use Echo instead.  </para><para>Print is capable of outputting a message in plain text to the log window: </para><screen><![CDATA[Script:
print This is a line that will show up in the log file
]]><![CDATA[
Results:
19:22:10 This is a line that will show up in the log file
19:22:11 Script stopped]]></screen><para>It is also able to display the value of a replacement variable: </para><screen><![CDATA[Script:
set blurb Testing
print %blurb%
]]><![CDATA[
Results:
19:21:48 Testing
19:21:49 Script stopped]]></screen><para>It is not, however, able to display the value of a true variable and is not able to evaluate the results of expressions: </para><screen><![CDATA[Script:
blurb = "Testing"
print blurb
math = 1 + 1
print math
print 1 + 1
]]><![CDATA[
Results:
19:23:27 blurb
19:23:29 math
19:23:30 1 + 1
19:23:31 Script stopped]]></screen><para>As you can see, it cannot get the value &quot;Testing&quot; from the variable blurb... nor can it add 1 + 1 to print out 2 or get the &quot;2&quot; value of math. You should use <ulink url="http://guide.neatportal.com/wiki/Print/wiki/Echo#">Echo</ulink> for these purposes. </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/Print/wiki/ScriptDeprecated#">ScriptDeprecated</ulink> </para></article>