unable to get a do-while loop working inside an if-else statement using google appscript

Advertisements I’m trying to achieve the following: Get appscript to recognise the latest csv file within a folder in google drive. Once it does recognise it, it will import the file into google sheets. If a file has been previously uploaded to the sheet, appscript should upload the new lines below the currently existing lines.… Read More unable to get a do-while loop working inside an if-else statement using google appscript