/** * Log message to server * @param {any} s Value to display */ const log = (s) => Logger.log(s); /** * Create pop-up message to notify user. Log if in debugging mode and can't alert. * * @param {string} s Text to display */ const alert = (s) => { try {SpreadsheetApp.getUi().alert(s);} catch {log(s);} }