<?xml version="1.0" encoding="utf-8"?>
<s1 title="BuildVersion"><p></p>
<s2 id="BuildVersion" title="BuildVersion">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>BuildVersion </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo BuildVersion </p>
</td></tr></table><p>This constant returns the version number of the running bot. </p>
<ul><li><source><![CDATA[// check bot version to make sure it is 3167 or later (simplified), compatible with old bots
     @BuildVersion = ""                                                           // this will assign value on older bots, silently error on newer bots
     if BuildVersion < "3167" echo "This script requires version 3167 or later"   
     if BuildVersion < "3167" end

// check bot version on post-3166 bots (simplified)
     if BuildVersion < "3200" die "This script requires version 3200 or later"    // note, "die" command may not be available on old bots]]></source></li>
</ul>
<p></p>

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