Thanks @TIMAI2, yes, I think I see. A nested version of button 1 and button 2 for loops is what I think I need. Will try this later when I'm back in front of the machine.
I played with this for a while, but I think I might be barking up the wrong tree.
I think you have given me the correct answer, but I think with the data I have (JSON), I might be better off using dictionaries, which I'm very new to and will have other questions - for another thread.