Skip to content
FlowWP logo
Menu

Conditional Logic

FlowWP branches a workflow with If / Else, stops a run that does not qualify with Only continue if, and, in FlowWP Pro, splits it several ways with Switch.

Available on: Every plan, AND / OR included · Switch, advanced comparisons and loops on Personal and above Compare plans

What it does

Conditional logic decides what a workflow does with each event. Not every order deserves a message to the sales team, and not every form submission belongs in your CRM — conditions are how a workflow tells them apart.

The logic steps

  • If / Else — test a value and send the run down one of two branches.
  • Switch — split a workflow several ways at once, one route per case, such as small, medium and large orders.
  • Only continue if — a filter that quietly stops a run that does not qualify. A stopped run is not a failure; the execution still counts as a success.
  • For each and Repeat — loop over a list of items, or repeat a set of steps.

How it works

A condition compares a value — usually a token from an earlier step, such as {{ trigger.order.total }} — against something you type, with operators like equals, contains or greater than. When the If step chooses a branch, the other branch is skipped rather than failed, so the run history shows exactly which path was taken.

In practice

An order is paid → a Switch on the total → orders over a threshold go to the person who handles large accounts, and everything else carries on as normal. Or: a form is submitted → only continue if the email address is filled in → create the CRM contact.

Details

If / Else, Only continue if and AND / OR rules are available on every plan, Free included. Switch, advanced comparisons and loops are on Personal and above. Plugins can register their own operators through the FlowWP SDK, and they then appear in If, Switch and Filter alongside the built-in ones.

Templates

See it in a ready-made workflow

    1. WooCommerce logoTrigger: An order is paid (WooCommerce)
    2. Condition: Switch (Logic)
    3. Action: Send Email (Email)
    WooCommercePersonal plan

    Flag large orders to your team

    Orders over 500 go to someone who can give them extra care. Change the amount to suit your store.

    3 stepsIntermediate
    1. WooCommerce logoTrigger: An order reaches a status (WooCommerce)
    2. Condition: Only continue if (Logic)
    3. WhatsApp logoAction: Send a WhatsApp template message (WhatsApp)
    MessagingPersonal plan

    Tell the customer on WhatsApp when their order ships

    A completed order sends an approved template to the phone number on the order. WhatsApp only allows a template for a message a business starts, so write and submit one in the WhatsApp Manager first — its placeholders are filled in here with their name and the order number.

    3 stepsIntermediate

Keep exploring

  • Triggers

    In FlowWP, a trigger starts a workflow from a WordPress or plugin event, such as a post being published, a user registering, an order being paid, or a webhook arriving.

  • Data Mapping

    FlowWP passes values from a trigger or an earlier step into later steps as tokens, chosen from a visual picker.

  • Actions

    FlowWP’s actions do the work: sending email, calling an API, updating a custom field or adding a note to an order and, in FlowWP Pro, creating and updating posts and users.

Build your WordPress workflow visually.

Start with a template or a blank canvas. Nothing runs until you activate it.