I have a msg.payload = eui-xxxxxxxxxx
I only want the pass on the message if it starts with eui.
If the message does not start with eui it needs to be blocked.
Were thinking along the line of function node with , buttt:
var output = msg.payload.split("-");
var e = parseFloat(output[0]);
if (e = "eui") {
return msg;
}
else {
}
Any help will be appreciated.
Thanks

