I have attributes in this fashion (simplified to make sense)
Attribute: Value
Fruit: Apple
DesiredColor:Red
Color_Of_Fruit:Green
Return_Value: IloveLeaf
Color{1}_Of_Fruit: Yellow
Return{1}_Value:IloveBanana
Color{2}_Of_Fruit: Red
Return{2}_Value:ILoveStrawberries
...
..
Note that I don't know in advance the number of occurrence of
Color{x}_Of_Fruit and the corresponding Return{x}_Value. However,
x should be less than 10. Also, this is not a list. This is how I get data when
parsed by JXL.
What I want to do is I want to find the return{x}_Value
where the value of DesiredColor matches the value of the Color{x}_Of_Fruit.
So in this example, I would return like a match on
IloveStrawberries
Any ideas on how to accomplish this in an elegant fashion?