Hey guys,
I think I am missing something very obvious here and this may be more of a nodered question than anything else, but why would I be getting this error when I am setting the value to be a number?
When you connect the event node direct to debug node, does the value come through as a string, is the number inside quotes? I’d think that trigger node would do the conversion though.
If I’m reading that message correctly, the condition failed because it expected a value less than 2 and received 104.
What happens if you change the first condition to a value above 104?
Ah you are right. I thought the first condition would be the first output and the second condition I had would be the second output and thought it just wasn’t seeing the value as a number so couldn’t apply the less than greater than operator. But now I understand that it has to meet ALL the conditions to be true.
A function node.
if(msg.payload < 2 and msg.payload > 1){
return msg;
}
This only lets through messages with values between 1 and 2. Not including 1 and 2
