I have some issue with a variable created inside an if loop. Can this variable be changed to global so that it is available to the entire program, not just in the inside of a lo