Hi Guillermo,
The problem here is that segment counts fulfil the true criteria for more than one conditional statements. For example, row 12 is a multiple of 1,2,3, 4, and 6. Instead of using conditional statements you can use the Sequence operator set to
Increment on Y. This will create a repeatable pattern that increments with each row.
I've attached a sample file for you to check out. There's also an adjustable set-up that using an expression to allow you to choose the number of rows over which an entire brick is offset.
I hope that helps, please let me know if there's anything else I can do.
Many thanks,
Paul