If-else
IF-ELSE is located under the logic connector in the workflow editor.
![](https://files.readme.io/9e972e1-Screenshot_2024-05-15_at_14.57.56.png)
IF-ELSE helps you add conditional logic to the workflow you're building. It helps to determine what actions need to run when a condition is true or false.
For example, when customers place an order in our E-commerce Marketplace to a merchant's Shopify store, we can check if the customer's lifetime spend is above a certain amount, say $100. If they have, IF-ELSE in our workflow will begin executing the TRUE path of the workflow. In the TRUE path, we add the customer's E-mail address to a segment in customer.io allowing our end-user to notify such customers of offers via E-mail.
![](https://files.readme.io/2b8cb72-Screenshot_2024-05-15_at_15.46.29.png)
In a case where a customer has not spent more than $100, the workflow will begin executing the false path. End-users can add such customers to a new segment to create upselling opportunities.
Updated 2 months ago