for (initialization; comparison; continuation) { ... }

i=LOOKBACK is NOT comparison.

That's what's obvious, without running the script..