Html post to msg.payload

I can send through my smartphone a html POST to node red to a .msg payload, it's the number 38 in the attachement,

With which function can i make a msg.payload true if the number is 38, and the msg.payload false if it is not number 38 (or something else), i don't know how i must read the number 38 out of the .msg payload

thank you


You can use a Change node configured like this

That sets msg.payload to the result of the test payload=38. Note that because the expression is JSONata not javascript it is a single = not double.

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