Splitting a range of indexes into groups using geometry nodes
I'm trying to split an object into groups / islands based on it's index value.
Example: The line has 25 indexes and I want to split it up into a group / island that includes 5 indexes.
So each group / island will have 5 indexes
Group 1 will include 0,1,2,3,4
Group 2 will include 5,6,7,8,9
etc...
What I tried but my logic isn't correct.