I'm no wizard, but I've been playing around trying to learn a bit with google apps script and I'm just confused as to why it isn't working. I've looked through the documentation and have referenced other works using if + else scripts and I can't find the error. Context: E7 is a checkbox, F7 is a fill-in-the-blank.
function testO() {
var mySS = SpreadsheetApp.getActiveSpreadsheet();
var getRange = mySS.getRange("E7")
if(getRange = true){
mySS.getRange("E7").setValue("FALSE")
}
else{
mySS.getRange("F7").clearContent()
}
}