My If condition is If updated = 1, I want to send If Node output false but instead of sending email with If Node output false, Send Email node will send the number emails in list by order, You can check by use above code. Please check this!
Sorry for my bad explain, I’ve updated picture and code for more clearly! I have 2 group, updated = 1 and not = 1. I want to send email to 2 groups. I’ve add Google Sheets append for more clear. Output to Sheet2 with Google Sheets append is ok with If node output field, but Send Email node is not!
I’ve noticed that sometimes False values do not get passes along properly, to fix it in my case i do this, it’s probably not the ultimate solution but it works:
@huuich, maybe trying the Switch node rather the IF node delivery the desired (multistep) result? However, I am new to n8n and might be totally mislead.
From what i’ve noticed, the only way to get a correct reponse from the “False” outputs is to use the merge in a passthrough mode (Or to use another node as passthrough)
I had now a look. The problem is that you use the expression with $node. That one does by default always use the data of the first output (so output with index 0, which is in the case of the IF-Ndoe “true”). If you change your expression to $json it uses the incoming data the node receives and works then as you expect.
So you would have to change the expression from:
{{$node["IF"].json["email"]}}
to:
{{$json["email"]}}
Also realized that our documentation has an error. It says instead of “output” wrongly “item”. We will fix that.