if the incoming value (e.g. ms.payload.code) is a number then it will get cast to a string for the contains
operation
Simple answer - it IS a number in the debug output, use number type in the switch comparison value
if the incoming value (e.g. ms.payload.code) is a number then it will get cast to a string for the contains
operation
Simple answer - it IS a number in the debug output, use number type in the switch comparison value
And when I do that, nothing goes through the switch
node.
So I tried to work out what is/was going on.
Try again - be certain to set the comparator to number type
the debug definitely shows a number.
I am so nearly tempted to set up my camera and record the screen, but the file size would probably be too big and not really achieve much.
Can you post a flow of the exec node up to the failing switch node please?
No need - use peek
ARGH ARGH ARGH!
I don't know how or why, I did it for the sake of indulging you - though I have done it 3 times before - and now it works.
Sorry folks.
You probably had the comparator set to string
Can't say. It was set to number.
But I am not going to argue.
All I did then was change it form contains
to ==
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.