Thanks for the tip!
I sometimes use it in if statement like so:
If ((myVar = fetchData()) = 5) {}
But I never thought of doing it on a for loop.
And I also realize how off my answer was since he asked for a 1 line statement…
Shouldn’t it be i++ - 1 though? I can’t try now…