<?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>hasTech</title><revhistory><revision><revnumber>2</revnumber><date>2014-11-15 03:07:28</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2014-11-15 03:07:13</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><section><title>hasTech(typeId,level)</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>city.hasTech(typeId,level) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>city.hasTech(2,5) </para></entry></row></tbody></tgroup></informaltable><para>This function checks if you have the specified technology researched to at least the specified level.  For example to see if you have archery at level 8 or higher: </para><itemizedlist><listitem override="none"><screen><![CDATA[if city.hasTech(14,8) echo "Yup, I have archery level 8+."
if !city.hasTech(14,8) echo "Nope, my archery is not yet level 8."]]></screen></listitem></itemizedlist><para>See also: <ulink url="http://guide.neatportal.com/wiki/hasTech/wiki/ResearchTypes#">ResearchTypes</ulink> </para><!--rule (<hr>) is not applicable to DocBook--><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/hasTech/wiki/CategoryFunctions#">CategoryFunctions</ulink> </para></section></article>