What am I doing wrong? (multiple outputs from function)

msg.payload = true;
return [ msg, null ];

Why does my function only have one output?

Even with two message objects, I still only get one output:

var msg1 = {};
var msg2 = {};

msg1 = true;
msg2 = false;

return [msg1 , msg2];

What am I doing wrong?

You manually add the outputs at the bottom of the function node.


I knew it would be something that simple.
I didn't see it because the bottom lines of my screen is covered by my password manager information bar. Normally I can go to full-screen to see whatever is there, but not this time.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.