hey guys, I have been told not to use global variables in my programs but now I have come accross a problem. I have a boolean variable which is initlised to false and when a function is called it is set to true so when that function is called for a second time a certain action will occur. But i can't put the bool in that function other wise it will always reset to false.
Is there anyother way round this problem other than having a global variable?