I tried to figured out, how n8n handle the if node when iterate over multiple items?
I’ve set the date_in_set_node variable in Set node, in function node I created multiple items (30) with the same value stored in item_date
Then i need to check for each iterations, if value of the current iteration of item_date is equal to the date_in_set_node value using if node
I would like to understand why I only get 1 true iteration in First case exemple, should I not get 30 true iterations ? The if node seems to stop iterations.
In Second case , I force the loop with a splitInBatches nodes and the result is 30 items true.
In Third case , I use same function as other exemple, except that I push in newItems object the value of date_in_set_node, in key item_set_date in Function1 node.
Then I compare if both values in the following if node are equal ( item_set_date == item_date)
So I also get as results 30 items true.
Is First case a normal behaviour ? A bug ? A misunderstanding ? Something else ?
Thanks for your help !
My workflow
Information on my n8n setup
- n8n version: 0.187.1
- MySQL Database
- Running n8n via desktop app