shawn, double dollar?
first, thing is that when for to next loop is used, the var is always initialized.

second is, I tried changing the var name to something spooky and no change.

third, this is stand alone script, meaning that you can copy&paste it to your system and see the fact.
it has hard set the value to 1 and it opens with 10.
changing it to 2 will show it as 2

so, there may not be a script issue and that can't be checker related as the behaviour is also in standalone separate script process.
_________________________
!

download KiXnet