Hello everyone,
Actualy, I have this lua script which is working well (This is an example of course):
function init(args)
local needs = {};
needs["payload"] = tostring(true);
needs["flowvar"] = {
"User",
"Name"
};
return needs;
end
function match(args)
local flowvar_user = ScFlowvarGet(0);
local my_value = "...";
ScFlowvarSet(0, my_value, #my_value);
...
return 1;
end
In fact, the result will be something like that:
"flowvar": [
{ "User": "..." },
{ "Name": "..." }
]
My problem is if the script is launched 2 times (or more) in the same flow, the last execution will erase and replace the previous one.
Do you know if it’s possible to get a result like that? (With infinite incrementation):
"flowvar": [
0:{
{ "User": "..." },
{ "Name": "..." }
},
1:{
{ "User": "..." },
{ "Name": "..." }
},
...
]
Thank you in advance,
Best regards,
Juquod