Does Pabbly Connect have an if,then,exit option?

Status: Open · Asked by Scott Bousfield on · 0 views

Scott Bousfield — Question ·
I have a workflow that is receiving emails, taking excerpts from the email text and sending it to Twilio to send me an SMS. I would like to set up an 'if, then, exit' situation within the workflow. Basically what I want to do is exit the workflow without forwarding to Twilio if the text received matches a specific phrase. Is this possible?
Pabbly Support — Reply ·

Hello Scott,

Thank you for reaching out.

Yes, this is possible using a Filter step in your workflow. A Filter acts as a gate: if the condition evaluates to true, the workflow continues to the next step; if it evaluates to false, the workflow stops cleanly (status 200, "filter condition not met") and does not proceed to your Twilio action.

To achieve your goal of exiting the workflow when the text matches a specific phrase, you would add a Filter step before your Twilio step and configure the condition so that the workflow only continues when the text does NOT match your phrase. For example, you can use an operator such as "doesn't-contain" (or "not-equals") against the received text. That way, when the text matches your specific phrase, the condition is false and the workflow stops before reaching Twilio.

A few notes that may help:
- Filters support 14 operators including Equals, not-equals, Contains, doesn't-contain, empty, not-empty, and others.
- Filter steps are free and do not count as paid tasks.
- If your filter always passes or always fails, common causes are type mismatches, an incorrect field path (returning empty), or whitespace in values. Running a test request and inspecting the actual values can help.

Please give this a try and let us know if you need any further assistance.

Thanks & Regards,

Adeel Akhtar
🌐 Pabbly.com

Back to all forum threads · Log in to reply