How could I set a variable that I can read by using eval('productOptionTree' + '[0][1][0]')
?
(the '[0][1][0]' part comes from another variable)
UPDATE it's an ugly question, but I couldn't find another way to do it. the only answer I could find is:
newVal = 4;
dim = '[0][1][0]';
eval('productOptionTree'+dim+' = ' +newVal);