--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/5ca596ff-7156-4e70-a6fe-6c6415a4035dn%40googlegroups.com.
I think I see what is going on. The date is a variable that is initialled by your spreadsheet data (position 1). Once you initialize a date value, it is no longer equal to a blank or (“”).
Change that if statement to the following:
if (eventID != complete && row[0] != ""){
That should work.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/54d23bf2-374a-4f04-93e3-250dba07c2e7n%40googlegroups.com.