Umm my mistake, I don't know what i was smoking

I think i must have declared the variable INSIDE the repeat loop :/
Guess its not a bug, but maybe a variable that gets declared inside a loop that is used in the exit condition should get caught in the compiler instead of crashing.
I hate when I make stupid mistakes like this, sorry.