title: I'm trying to make a void to check if something is true, and if something is, make a string say something depending on what was true
body: <pre><code>     public void sortingFamilyName(Player player) {
    if (player.Zamorak == true) {
     godFamily = "Zamorak";
    }
    if (player.Saradomin == true) {
     godFamily = "Saradomin";
    }
    if (player.Guthix == true) {
     godFamily = "Guthix";
    }
    if (player.Zaros == true) {
     godFamily = "Zaros";
    }
    if (player.Seren == true) {
     godFamily = "Seren";
    }
    if (player.Bandos == true) {
     godFamily = "Bandos";
    }
    if (player.Armadyl == true) {
     godFamily = "Armadyl";
    }
   }
  </code></pre>
  
  <p>Theres smallish trouble. It doesn't work. How can I make it so, if Armadyl is true, godFamily would be "Armadyl"?</p>