I'm trying to use a list to select a link that corresponds to a randomly chosen picture (label). Pictures are named from 1 to 12 e.g. P1.jpg.
Originally I used if else statements with the specified Label Name (hidden in screen view and corresponds to the picture) and the link that relates to it.
I need to make it more concise, I was told that if I put the URI values into a list I can select the right one via the list index.
I understand each one would be index 1 to 12, but I can't figure out how to relate it to the label which will have the text as P?.jpg. I've tried a few different ways and gotten close but I've hit a wall and can't wrap my brain around it.
Any hints or help would be appreciated.