For Loop
I am trying to make a grid (6 columns) as I duplicate layers, when I reach copy 7 it is positioned below the first ones. I achieved it with an if else expression but it is manual, I have to replicate the statement every 6 layers for it to repeat. "number" I added with the index of the layer.

basically I have the loop in javascript but I don't know how to integrate it to the Y axis position, I want the first row 1 (layer 1 to 6) to be at 5 pixels, row 2 (layer 7 to 12) to be 10 px and so on

