Use switch node to identify path?

I'm receiving the following status messages originating via MQTT;

switch

...and trying to use a switch node to discriminate between msg.payload.POWER and msg.payload.Delay. Is this possible with a switch node?
I can of course use a function node and javascript, or maybe 2 switch nodes, but thought that this should maybe be an option for a single switch node, or am I (probably) missing the obvious?

test msg.payload "has key" POWER

1 Like

Thanks Dave.
I can see the logic now :grinning:

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