After my agent runs, it returns a boolean output to check the existence of data. With this output, I process two branches in the Switch node. Actually, I first used an If node but encountered the same issue, so I switched to the Switch node. If true, it processes A (code node); if false, it processes B (HTTP node). However, data from previous nodes is only transferred to the first branch, and the second branch is blank. If I switch the branch order, data is still only transferred to the first.
What is the error message (if any)?
No fields - node executed, but no items were sent on this branch
I’m thinking your agent output is still a string.
Try changing your Switch node conditions to String > is equal to and typing in true or false.
In javascript, a nonempty string is a true boolean, so it’ll return true every time.
It doesn’t work, though. I also used the If node at first. And I tried again following your recommendation, but the result is the same with the Switch node.
As you can see, I have true/false branches to continue the next appropriate process. However, data is only sent to the first branch, and the second branch has nothing, so I don’t have data to continue the process. For now, I’m using a temporary solution by connecting the second process directly to the node before the Switch/If node to get the previous data.