I'm having trouble scaling each instance by index going from small to large for each instance one at the time. Right now my instances just go from large to small for the whole length:
And here are the nodes that go into the scale of instance on points node:
Hope that someone can help me out :) Thanks.
Edit: The answer below solved my question, but is there a way to make it loop through the instances? Now it just stops when it reaches the end.