Switch node - multiple values in same conditions

Hi can someone help me create a switch node with multiple values like
for example if msg.payload can push 1,2,5,10 then switch node should run two conditions with == for 1,2,5,10 and != for 1,2,5,10
how do i use multiple values in one condition

Have you tried...

or

2 Likes

thanks second example worked

I would also like to thank you. I would never have thought of using JSONata as the selection property, didn't even realise you could. :rofl:

It certainly makes things lot neater

2 Likes

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