I have been doing sheet.stopTC(aVal)
and it seems to go fine, however here:
key: "stopTC",
value: function stopTC(z) {
if (z == true) {
z = false;
console.log("cache started");
} else {
z = true;
console.log("cache stopped");
}
return z;
}
//globals
aVal = false
the variable is globally set to false
but when it comes back the aVal
stays false
instead of changing to true`.
Sorry I'm new to programming and can't get my head around it.