I'm getting the following error and would like to know how to rewrite this code properly.

> 
> ReferenceError: Function function getLabel() {/\* \*/} can not be used as the left-hand side of assignment or as an operand of ++ or -- operator. (line 61, file "DLContactsToSheet")
> 
> 
> 

```
    var Phones = "";    
for ( var g=0;g<contacts[i].getPhones().length;g++)
{
  if (contacts[i].getPhones()[g].getLabel() = "MOBILE_PHONE") {
    Phones += "C: "
  } else if (contacts[i].getPhones()[g].getLabel() = "WORK_PHONE") {
    Phones += "W: "
  } else if (contacts[i].getPhones()[g].getLabel() = "HOME_PHONE") {
    Phones += "H: "
  } else {
    Phones += "O: "
  }
  Phones += contacts[i].getPhones()[g].getPhoneNumber();
  Phones += "\n";
}
try{ContactArray.push(Phones);}
  catch(e){ContactArray.push("N/A")}

```