How do you add or subtract from a number when you click on a button. I want to simply say
if (button.click){
num++;
}
How can I do something like that with the google apps script buttons? Things seem a bit less straightforward to me as I’ve never used a click handler. Its probably some simple thing that I’m missing. Thanks for the help.
please have a look at this demo code :
EDIT : (following your secondary question) to get a Label showing the cell’s content you can use this code in the handler function :
and in the Ui definition you have to create the label like this :