I'm indexing it inside a for loop and iterating it depending on the number of elements. Here's the image.
Yep. There's no need for the FOR loop. Wire it straight in.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5