I don't know RB, but it sounds like you want to use an index value.

If the Popup has the option of returning a numeric value (or deriving it somehow) for the position selected, then that can be used to use gain access to the second array. Assuming your array positions start at zero, it might be 1 in RB, here is what you want. If RB uses 1, I'll leave it to you to figure out the math.

Here is some pseudo code to get the idea. Notice how the formula for the three assignments repeats.

Code:

popupvalue returns 0, text1 = arrary2[popupvalue * 3]
popupvalue returns 0, text2 = arrary2[popupvalue * 3] + 1
popupvalue returns 0, text3 = arrary2[popupvalue * 3] + 2
popupvalue returns 1, text1 = arrary2[popupvalue * 3]
popupvalue returns 1, text2 = arrary2[popupvalue * 3] + 1
popupvalue returns 1, text3 = arrary2[popupvalue * 3] + 2
popupvalue returns 2, text1 = arrary2[popupvalue * 3]
popupvalue returns 2, text2 = arrary2[popupvalue * 3] + 1
popupvalue returns 2, text3 = arrary2[popupvalue * 3] + 2

So instead of if statements, you have

Code:

text1 = arrary2[popupvalue * 3]
text2 = arrary2[popupvalue * 3] + 1
text3 = arrary2[popupvalue * 3] + 2

Another way to do this is with a dictionary. The dictionary key would equal your popup values and the dictional value would be an ordered array with your replacement values. This is may be less prone to errors.