| 
  
   Size: 793 
  
  Comment:  
 | 
    ← Revision 4 as of 2014-11-16 04:53:11  ⇥ 
  Size: 885 
  
  Comment:  
 | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 2: | Line 2: | 
| ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start; " tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Usage: ||<style="border-style:solid;border-color:rgb(170, 170,170);padding:0.2em;">city.getMayor() || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">city.getMayor() ||  | 
||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start;    " tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;    ">Usage: ||<style="border-style:solid;border-color:rgb(170, 170,170);padding:0.2em;">city.getMayor() || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">city.getMayor() ||  | 
| Line 6: | Line 6: | 
| returns [[heroes|hero object]] | returns [[Heroes|hero object]] if there is a hero set as mayor, otherwise returns null | 
| Line 13: | Line 13: | 
---- CategoryFunctions  | 
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"

![[+]](/moin_static/explorer/img/toggle1.png)

![[-]](/moin_static/explorer/img/toggle0.png)
