Switch node with dynamic value


I have a switch node where I switch the msg to one path if the payload is below 20 and another path for ‘otherwise’. However, I want the value of ‘20’ be configurable through the ‘dashboard’ text node.

Any ideas?



You can configure the Switch node to compare payload against a ‘flow context’ variable. You can then set that flow context value by wiring a Change node after whatever dashboard input widget you want to use.