This is pretty self explanatory, I don't know why I'm getting the error since process()
should be executing, but it's not.
function process () {
var List = new Array("a","b","c");
}
function print () {
if (typeof List == undefined) {
process();
}
var doc = SpreadsheetApp.getActive();
for (var i = 0; i < List.length; i++) {
var c = i+1
doc.getRange("A"+c.toString()).setValue(List[i]);
}
}
print();
ERROR: Line 10, List is not defined