I’m having trouble with workflows where I need to check a condition, then grab info from nodes prior to the IF node to do an operation.
Let’s say I have 3 items from a search node. I want to check each item for a specific condition which I do with the IF node. If true, I want to do something to the item but I need some data from a node not immediately preceding the IF node. (In the example below, I need some info from the Bubble node).
What happens is: Items 1 and 2 go to the false branch, then on item 3 when I try to get the corresponding item from the Bubble node, it actually gets item #1. How do I get the correct item from before that IF node?
The workaround for me has been using SplitInBatches, which forces the data to be one item at all times so I can always get the correct one if the IF branch resolves to true. However, I feel like I’m missing something obvious here.
Working example using SplitInBatches: