Re: for puzzlement
- Posted by ChrisB (moderator) Jan 07, 2019
- 1467 views
Hi
Already been explained, but another way to look at it is that the variable in the for loop is created when the loop is run, so logically you shouldn't have already created it.
in my opinion, and to avoid loop confusion, don't repeat the variable names, so
integer rn_nmbr = 2 integer rn_limit = 4 procedure myloop( ) for i = rn_numbr to rn_lmit do ? i end for end procedure
Just another opinion!
Cheers
Chris