How to pass along failing condition from if node

I’m creating a basic database health check workflow where every 15 minutes the workflow runs an httprequest node to get json from our server and pipes that result into an If node. The json object has a number of boolean properties. Each property is true/false as to whether a query found results for that property. So, then each property is a condition within the If node. If any are true, it executes the true branch. But, I’d like to include which property/properties are true so that when it goes to the next node it can build up a message showing what queries found results before posting that message to our slack channel.

If I turn on Always Output Data in the If node’s settings it always calls the true branch which of course I don’t want to happen. Is there a way to pass along only those conditions that are coming through as true to the slack node where I can build up a message?

Hi @gswartz

I think an easy approach is to use the “Switch” node instead of the “If” node.

Give it a try and let me know if you need any help.

Hi and thank you for your suggestion. The switch node may in fact be a better way to go. However, I’m still not sure how to aggregate all of the failing conditions into one message that I can then send to slack. If I’m understanding your approach correctly, I would have a single message for each failing condition, is that right?