Hi to all,
see below Function block
Test 1.
if (msg.payload <=0)
{
return "Pressure too low";
} else {
return[""];
}
Test 2.
var msg1= "Pressure too low";
if (msg.payload <=0)
{
return msg1;
} else {
return[""];
}
The else case is working!
Result: Function tried to send a message of type string
I can do a work around with the change node, but I would like do it complete in the function node
Wolfgang