I have a function looking at a string of 6 characters, my function uses a loop to look at each character in turn and if the value matches a temp value a event occurs.
I have at the beginning of the function
var temp1 = some value
var temp2 = some value
if my logic is true then I want to do the following where x is the array position (1-6)
temp + x = context.get('T1'); this fails
if its static
temp1 = context.get('T1'); it works