Have a read of the Multiple Outputs section of http://nodered.org/docs/writing-functions.html and let me know if that solves it for you.
Nick
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
msg2={};
at the start of the function.
Otherwise you'll get the error message that msg is not defined.
Strange I did post a response to Marks post yesterday but obviously it went astray anyway essential it said :