<?xml version="1.0" encoding="utf-8"?>
<s1 title="IsHeroInCastle"><p></p>
<s2 id="Function" title="Function">
<p><strong>m_city.IsHeroInCastle</strong>(&quot;<jump href="/wiki/HeroString">HeroString</jump>&quot;) </p>
<p>This is a function performed on HeroBean Objects, returns false if specified hero is not in the castle. </p>
<p></p>
<s3 id="Example" title="Example">
<p></p>
<source><![CDATA[if m_city.IsHeroInCastle("Trebber") goto checkTrebs]]></source><p>if the hero named Trebber is in the city then goto the label checkTrebs </p>
<p><strong>see also: </strong> </p>
<p><jump href="/wiki/AnyIdleHero">AnyIdleHero</jump> </p>

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