O.P. Public variables...
Hi, I need help...
I have a variable declared outside of my function. However, it reads this variable from inside the function but in that function or any other function it won't change it. I have a boolean...
allow = true;
function blahBlah()
{
...stuff
if (stuff) { if (allow = true) { stuff } else { stuff } }
}
function otherStuff()
{
allow = false;
}
So when I do blahBlah() it works perfectly, When I change it however to false using otherStuff, and then use blahBlah, it still thinks that allow is true. Which it shouldn't be..
|