When I have two input paths to either an If or Switch node (one from a webhook and one from execute node - permits the workflow to be called tw different ways) both the If and Switch go down the false path when I compare an input string to a fixed value. If I remove either of the inputs, it works perfectly.
Per execution, only one input will be used, either executed via webhook, or run from a parent workflow. So why does a seconf input break it?
So from over here things seem to work as they should. Can you confirm what exactly breaks for you (ideally share a screenshot of any error you are seeing) and which behaviour exactly you’d expect in each of the scenarios (manual, webhook with method!=get, webhook with method=get)?
Let me digest it and see if I can tease the IF statement into going down just one path.
I’m trying to build some n8n nodes that mimic objects in the OOP sense. To keep the URLs very simple, I will pass the object name, method and data in the body of the request (when invoked by a webhook) and if the object is just executed within a workflow, i will make the parameters available in the input. My goal is that an object will behave the same regardless of how invoked, and it has the benefit of being easier to test.