For reasons unknown now I have this bit of code in a node:
newval = RED.util.getMessageProperty(msg,part)
I now see there is a problem if the msg.payload is simply true or false.
How can I detect this and avoid using the above line but rather just set newval to the message's payload?