2.5 🧠 Let’s Make Our Workflow Repeat and Think
Let’s build smarter workflows with logic.
Last updated
Was this helpful?
Let’s build smarter workflows with logic.
Scenario: From a given array of emails, print individually if an email ends with gmail.com or yahoo.com or not.
Add a decision step inside the loop. The Decision step works like a conditional ladder — if a condition is met, that pathway runs; otherwise it checks the next condition, and so on until the else pathway. We have the ability to configure a title for each pathway. Let us have Option A for filtering emails ending with gmail.com, option B for filtering emails ending with Ending with yahoo.com and an else pathway. For each pathway to be executed, configure the condition to satisfy as shown below.

If your use case demands a complex/nested condition, you can use the plus icon.
Click on Option A of Decision Step and add a Console. The current item being considered in the iteration is accessible in the Data Hub’s item when clicking plus icon before loop.

Configure the message as {{1.item}} ends with gmail.com
Last updated
Was this helpful?
Was this helpful?