When I first started to use context variables, I was only saving primitives and so to change them I had sequences like this:
flow.set("stored number",1) //other code temp = flow.get("stored number") temp = temp + 1 flow.set("stored number",temp)
This would cause the flow variable "stored number" to be created, populated with 1, then populated with 2.
flow.set("stored array",[1,2]) //other code temp = flow.get("stored array") temp.push(3) // stored array is already [1,2,3] and so the following line is redundant flow.set("stored array",temp)
I actually ran into problems with the pass by reference when storing objects, but an array was smaller code to show the question.