I have an array like this:
rules[0] = "a";
rules[1] = "b";
rules[2] = "c";
And an object data that has values value-a, value-b, value-c (the last letter comes from "rules".
I know you might suggest an array, but I really need them to be normal attributes. How can I create these dynamic attribute names formed with the string "value-" and the value of a variable?
for r in rules {
data.value-??? = "something";
}