Can the value of the switch node, which is 20, be entered and applied from the UI?

Can I use a text input from the UI to enter and apply the value of 20, as shown in the picture?

The switch node does not change anything in the msg object. You would need a change node after it attached to the output of the switch node.

I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

thank you so much

You can use a change node to set a context variable for example flow.myvalue.
Then the switch can compare with the context variable
Untitled 2


You solved my problem. Thank you.

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