Improve Your 'If' Conditions and Avoid Silent Failures
At Zenphi, we are committed to helping you build the most effective and reliable automations possible. This post highlights a common scenario we encounter and provides a simple tip to make your flows more robust.
The Scenario: Checking a Condition
Many automations depend on an 'If' condition. A classic example is a flow that triggers on a new file in Google Drive and must first confirm if the file is a PDF. If the condition is 'True', the flow proceeds. But what if it's 'False'?
The Problem: The Silent Failure
We often see that the 'False' branch of a condition is left empty. In our example, if a user uploads a Word document, the flow simply stops. The user receives no feedback and doesn't know their file was ignored. This creates a "silent failure" that can lead to confusion and support requests.
The Solution: Always Configure the 'False' Branch
The best practice is to always place an action in the 'False' branch. By adding a simple "Send Email" or "Send Google Chat Message" action, you can instantly inform the user that their file was not processed because it was the incorrect type.
This small change makes your automations more transparent and user-friendly. We encourage you to review your flows and ensure your 'If' conditions properly handle both 'True' and 'False' outcomes.