Easy question: switch node from payload content


I need your help please.

I have this payload-data in the dubug:


i want this in a switch node. If presentValue: 1 then switch 1 / If presentValue: 2 then switch 2:. Like this:


What i need to do? Thank your for Help!

Test msg.payload.presentValue
Test for a numeric 1 or 2

This should do it:

(The second one should also be numeric like @zenofmud said, although it likely works either way)

1 Like

thank you! it works now!

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