<?xml version="1.0" encoding="utf-8"?>
<s1 title="hasTech"><p></p>
<s2 id="hasTech(typeId,level)" title="hasTech(typeId,level)">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>city.hasTech(typeId,level) </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>city.hasTech(2,5) </p>
</td></tr></table><p>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: </p>
<ul><li><source><![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."]]></source></li>
</ul>
<p>See also: <jump href="/wiki/ResearchTypes">ResearchTypes</jump> </p>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> </p>

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