Function with multiple output combined with node-red-contrib-boolean-logic

As described in the help text the boolean node uses message topics to identify the values to be ORd together. You need to specify different topics for the messages coming in on the two paths. So if, in your function you put

var testTrue = {topic: "A", payload:true};
var testFalse = {topic: "B", payload:false};
return [testTrue, testFalse];

then it should work.

1 Like