This is a cut down example, but for the sake of showing the problem (question)
If msg.payload
contains partly
it goes to output 1
if msg.payload
contains scattered
it goes to output 2.
otherwise it goes to 3.
Ok. But for the sake of asking:
If I have a few things which are OR, can I save outputs and tests and put them all one one line?
Then it would be more like:
if msg.payload
contains partly
|| scattered
it goes to output 1
[{"id":"8469cd6d.ced9c","type":"switch","z":"703c61ac.837e1","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"partly","vt":"str"},{"t":"cont","v":"scattered","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":430,"y":390,"wires":[["ee25707a.a4a21"],["ee25707a.a4a21"],["9760d9dd.5b4b2"]]}]