== Function: getMayor() == ||Usage: ||city.getMayor() || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||city.getMayor() || returns [[Heroes|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