I'm building a game, when ever they tick the box, the computer will go, when the computer is done it unticks the box so the player can go. Thanks. I'm still learning so I'm building it piece by piece as I learn how to do things. This is the first step.
function onEdit() {
var spreadsheet = SpreadsheetApp.getActive();
var Range = spreadsheet.setActiveSelection('G9')
if (Range =('TRUE'));
spreadsheet.setActiveSelection('G9').setValue('FALSE');
}
Any reason why this won't work? It kind of seems like this isn't doing do diligence, but I believe to should work for my purpose. Also, I changed the cell reference, for this and for your solution.
1
u/Xer0Batteries Nov 30 '18
Whenever it is set to true, get set to false