0

How can i send variables form function to function

First function

Second function

hardillb
  • 54,545
  • 11
  • 67
  • 105
lalalala589
  • 3
  • 1
  • 2
  • 2
    Please post the actual text for code not images, as it makes them impossible to search for. Also when including images it is useful to add a `!` before the first `[` so they get inlined then people don't need to click on them to see them – hardillb May 13 '18 at 20:07

1 Answers1

0

The input message to a function node is always called msg (no matter what you may have called it in a previous function node).

So in the example you have given to access the payload of the incoming message in the second function node you would just use msg.payload. (so in this example the second function node is redundant, but I expect you are actually doing more than is shown)

hardillb
  • 54,545
  • 11
  • 67
  • 105