I have a function node.
It has this in it.
var msg2 = { payload:"", background:"red"};
return [msg,msg2];
the second output goes to a button and it sets the colour. (Derived from msg.background)
I am messing about with an INJECT node: (JSON)
{"payload":"","background":"lime"}
Doesn't work.
Looking, the message has an OBJECT which than has a sub-part background.
Ok.... Not too much of a worry. I'll write it in another function node and be done with it.
payload="",background="red";
return msg;
Pretty well the first one, but only with one output.
Also doesn't work.
Anyone know where I can buy a new brain? This one seems to not be working.
I AM sorry. I do NOT like being like I am, but I am stuck with it.
I don't get WHY I am not getting this "syntax" stuff for how messages are "structured".
What is it that I am missing?