How can i get only the "true/false" value from array

How can i get only the "true/false" value from array to after send to Bomba1Marcha?
I get an array, but i only need true false value.

imagen

Thanks.

You can use a Change node to move it into msg.payload.

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

Next is ok! Thanks.

msg.payload = msg.payload[0].run
return msg;

That would be more efficient in a Change node.
Move msg.payload[0].run To msg.payload

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