Do you mean that, if you run it in the debugging mode, the variable loopindextest is either =zero or =the end of the loop ?
Well, yes, it happens in 1 tick. You dont see that loop counting, its is done in less then a blink of an eye. So it or zero, when the condition is not met, or the end of the index when you look at it. It is Schrödinger's cat.
If it does not loop (from zero to end), then you really need to upload the capx. But, i expect it to loop because you basecaly say that the variable does indeed show the end of the index.