Logging and Alerts
Thu Feb 03 2022 17:02:24 GMT+0000 (Coordinated Universal Time)
Saved by
@MakiProductions
/**
* 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);}
}
content_copyCOPY
Comments