in reply to Re: Use variable outside if statement
in thread Use variable outside if statement
That's a poor idea. The right way to solve it is to expand the scope of the variable a notch to be just outside the if-block. You solved it by ratchetting the scope up to global which is far higher than the problem required.