How to get the index of storage and input it into a storage?

Let me explain.. I have a thing with 2 or maybe more data such as {"index","hello world"] and i have a scoreboard that inputs the current index. How do i make it so that it selects data[1] when the score equates to 1?

Continue to help post