I am injecting a String into my flow, then making it into a JSON String with the JSON node and splitting it with the split node. I get 5 messages out of this split node because there are 5 values with 5 properties. What I need is to extract only one of the values, to then use it in a function node. How can I do this?
This is a picture of one of the 5 outputs. What I want is to ONLY use the value (137) in a function node that should come after the split node. Thanks in advance.
If you only want one of the values out of 5 then it may be easier to just select that from the 5 rather than after the split. - what does the object with 5 items in look like ? Can you show us a debug of that ?
This is how the input of the split node looks like. I thought I should split it so that I can use the value of the power in a function node.
Maybe it's easier if I just explain my goal. I want to be able to use the power value in a function node, to check if it's zero or higher. How can I extract the power value from this message? (the message will be updated every 5 seconds)