How does the For Loop blueprint translate to C++?

I am fluent in C++, but when trying to use the for loop in Blueprint, I can’t figure out how it works.

I am trying to recreate the following for loop in Blueprint:
for (int row = 0; row < 800; row += 40)
… for (int col = 0; col < 800; col += 40)
… {
… blah blah blah
… }

This is what I tried:

Is am confused as to what the green “Index” on the right of the For Loop node is supposed to mean. Is it a condition? Is it the counter increaser? Neither? Is there no way to increase the loop counter by more than 1, or add a condition?

Thank you for any input, it is greatly appreciated. Hope you have a good day :^)

Its the int of the current loop.

Perhaps you should consider a while loop.

You could also try 800/40 as last index and index*40 the transform. This way you could probably iterate ++i and get the result you want.

Also keep in mind that loops in blueprint tend to be slow.

You can create a custom macro like this

and call it like so

Will keep that in mind, thank you and thanks for taking the time :^)