<?xml version="1.0" encoding="utf-8"?>
<s1 title="Print"><table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>print Message to be printed </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>print Hi,this is a test </p>
</td></tr></table><p>Allows you to print a message into the log window. This script command has been replaced by the more powerful <jump href="/wiki/Echo">Echo</jump> command, and any new scripts should use Echo instead.  </p>
<p>Print is capable of outputting a message in plain text to the log window: </p>
<p></p>
<source><![CDATA[Script:
print This is a line that will show up in the log file

Results:
19:22:10 This is a line that will show up in the log file
19:22:11 Script stopped]]></source><p>It is also able to display the value of a replacement variable: </p>
<p></p>
<source><![CDATA[Script:
set blurb Testing
print %blurb%

Results:
19:21:48 Testing
19:21:49 Script stopped]]></source><p>It is not, however, able to display the value of a true variable and is not able to evaluate the results of expressions: </p>
<p></p>
<source><![CDATA[Script:
blurb = "Testing"
print blurb
math = 1 + 1
print math
print 1 + 1

Results:
19:23:27 blurb
19:23:29 math
19:23:30 1 + 1
19:23:31 Script stopped]]></source><p>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 <jump href="/wiki/Echo">Echo</jump> for these purposes. </p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptDeprecated">ScriptDeprecated</jump> </p>
</s1>