Switch node with dynamic value

#1

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?

0 Likes

#2

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.

0 Likes