Flow variables troubles

sorry it was a mistake, the good lines:

flow.set('tag_old', const_nb_old);
flow.set('agv_old', const_agv_old);

So it works well but again when i try to retrieve my values in a mustache template with:

test={{flow.tab_agv[1]}};
or
test={{flow.tab_agv.1}};

It returns nothing..

flow.set("tab_agv["+flow.get("agv_old")+"]", flow.get("tag_old"));
and
essai=[flow.get("tab_agv["+flow.get("agv_old")+"]"),flow.get("agv_old")];

are ok, i get [1,2], [3,5],..etc from essai, so the flow variable seems ok and i thin i've got the good syntax to retrieve it in the template ?

Are you asking if it works? I thought you already said it worked. I just wanted to be sure you were not double setting the same flow variable,

My previous example is Ok, no double setting problem, the flow variable "tab_agv" is well set. I've got the good values in the debug console.

The point now is to retrieve these values from a mustache template with that kind of syntax:

test={{flow.tab_agv.1}};

in this example i try to recal the value of

tab_agv[1]

But it doesn't work...

are you doing that in a function? template? do you have a small example flow demonstrating the issue?

Finally that's ok, i found another solution. Thx to all !

So what was the solution?

If you describe it, the thread becomes useful to someone else finding it in the futureā€¦

i simply declare a var in my webscoket template code:

var myArray = {};

And i send it through a function call like:

Draw (myArray);

This function is defined in another template and it works, i get the " myArray" content !