Re: scope of variables
- Posted by mattlewis (admin) Jan 02, 2011
- 2580 views
useless said...
Gosh, i misread. I thought 4.0 did NOT allow variables to be declared inside a if-then loop AND thereby shadow a variable outside the loop. My solution is one of many that pseudo-DOES, but i'm just useless again since you tell me 4.0 DOES now allow this.
To be clear, variable can be declared inside of if-then, while, for, etc code blocks. But those cannot (currently) shadow names of variables that are in the same routine.
Matt