I am trying to combine the text values of 2 variables then use that to get the value of a 3rd variable and use that in a calculation. I am hoping if I state the (group + type) correctly that it can be done. With this code:
var group = "flowers";
var type = "rose";
var flowersrose = 20;
var result = 0;
result = result + (group + type);
output = [{id: 123, result: result}];
I get:
id
123
result
0flowersrose
I want:
id
123
result
20