<?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>BuildVersion</title><revhistory><revision><revnumber>2</revnumber><date>2015-04-18 19:20:27</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2015-04-18 19:20:08</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><section><title>BuildVersion</title><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>BuildVersion </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>echo BuildVersion </para></entry></row></tbody></tgroup></informaltable><para>This constant returns the version number of the running bot. </para><itemizedlist><listitem override="none"><screen><![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
]]><![CDATA[
// 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]]></screen></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/BuildVersion/wiki/CategoryConstants#">CategoryConstants</ulink> </para></section></article>