• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Function: getMayor()

    Usage:

    city.getMayor()

    Example:

    city.getMayor()

    returns hero object if there is a hero set as mayor, otherwise returns null

    • mayor = city.getMayor()
      if mayor echo "Mayor's name is "+mayor.name
      if !mayor echo "There is no mayor"


    CategoryFunctions

    getMayor (last edited 2014-11-16 04:53:11 by tech)