It is my understanding that global variables can be accessed from within Google Apps Script (GAS) Scriptlets. (See: https://developers.google.com/apps-script/guides/html/templates). So, in essence, I do something like this:
var myVariable;
function doGet() {
myVariable="Doug";
...
}
Thereafter, I am unable to access myVariable from within a GAS scriptlet. I am told that myVariable is undefined. I need to know how I can access values developed within doGet() from a GAS scriptlet. Any input would be greatly appreciated. Thanks.
... doug