<?xml version="1.0" encoding="utf-8"?>
<s1 title="getMayor"><p></p>
<s2 id="Function: getMayor()" title="Function: getMayor()">
<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.getMayor() </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>city.getMayor() </p>
</td></tr></table><p>returns <jump href="/wiki/Heroes">hero object</jump> if there is a hero set as mayor, otherwise returns null </p>
<ul><li><source><![CDATA[mayor = city.getMayor()
if mayor echo "Mayor's name is "+mayor.name
if !mayor echo "There is no mayor"]]></source></li>
</ul>
<p></p>

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