Compare the result of two functions and get just one

I have the result of two functions and I want to compare their result in a single function. But I can't, I don't know if it's a synchronization error or times, I tried the join node but nothing works. Here I leave some screenshots. Thanks.


The best way would be to put all the nodes in series and move the payload into another property of the msg so that it is not overwritten. Alternatively, you can use the join node to join 2 (or more) messages into one. See this article in the cookbook for an example of how to join messages into one object.

If you use function nodes you can store values of each incoming messages in the context of the function node.

The Join node does that for you without you having to write javascript.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.