My device has a tag called “Type”. How can I use that in a switch block? I tried
with no luck. Note that myDevice is populated correctly by a Get Device block. It contains my tags in an array, I can see them in the debug window but I don’t know how to use them in a switch block! I always get default case.
I also want to use one character in my payload in another switch block but I don’t know how to access that either! e.g. if my data.body.data = “1114”, I want to switch on the first character “1”. How can I do this?