function m_city.IsHeroInCastle("HeroString") This is a function performed on HeroBean Objects, returns false if specified hero is not in the castle. see also: http://guide.neatportal.com/wiki/HeroBean CategoryFunctions