Create a function with 2 outputs with condition

Ok colin,

So i edited my function node like this :

and i put all debug node in my entry and you can show this :

EDIT : I just find a node (node-red-contrib match) and it's work, If is right go on top, if is fasle go on bottom.

But i've new problem now, i've a problem when i start my flow, my join node take directly one value so, i need to push, long to make an error and reset the join node, and push short and my dashboard button to make the rules. and my vidéo start. so i don't understand why.

Ok guys,

So, i found the solution this is my new flow with the match node :

I needed to change the join flow to this, i changed key/value to string :

And my match node :

So, all is work, just now, i've a problem with message sending, like my preview post, when i start my flow, the value long is directly send, so my join node wait only one other value and not 2, so how to remove the first value at start ?

Hi everybody,

Sorry for the repost a ne message again but i found the solution !

I use the node séquence detector it is perfect for me. node-red-contrib-sequence-detector (node) - Node-RED.

This is my flow :


Is not really clean but it's work.

and my node sequence detector very easy :

So it's much easier to use this node that join node for me.

Thanks for all guys !

1 Like

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