Simple Return If Value = No

32 views
Skip to first unread message

Josh McTighe

unread,
Feb 15, 2025, 11:21:18 AMFeb 15
to Google Apps Script Community
Hi All

I have a script and as it's gotten bigger one issue is that some rows further down the google sheet which do not need excecuting but are populated on the sheet are are getting documents created due to my simple return script which has worked well for last couple of weeks. The scipt looks at that column and says if document link in there ignore.

//Here we check if a document has already been generated by looking at 'Document Link', if so we skip it
    if (row[1]) return;



I was thinking I can do a vlaidation column instead now so If the column says yes then the scipt creates a document and puts the link in, if the validation says no then it skips it. Just looking for something very simple.

Thanks
Reply all
Reply to author
Forward
0 new messages