Re: Phix loop variables and scope
- Posted by ChrisB (moderator) May 25, 2018
- 1089 views
Hi,
Yeah, that'll never work. The loop variable ahouldn't be declared, and once it's out of the loop, it's lost. you can jump out of the loop earlier, recording the loop variable into a local or global variable just before you do though, but the scope of x is only in the loop.
Cheers
Chris