Created
May 31, 2018 03:04
-
-
Save UskeS/43e62d477aaa4943da6acb1e0f95f5da to your computer and use it in GitHub Desktop.
Confirm dialog method in GoogleAppsScript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function confirm (mes){ | |
var res = Browser.msgBox(mes, Browser.Buttons.OK_CANCEL); | |
if (res === "ok"){ | |
return true; | |
} else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment