Skip to main content

Using Logic Conditions in Workflows

Create advanced workflow automations using logic conditions, custom fields, triggers, and rule-based actions.

Written by Devanshi Kackar

As your workflows grow, you may find yourself creating multiple workflows with the same trigger but different actions. Logic Conditions let you keep everything in a single workflow by creating multiple paths based on specific criteria, allowing the workflow to automatically decide what happens next.


What Is a Logic Condition?

A Logic Condition is a helper action available within Workflow Automation. It acts as a decision point in your workflow, evaluating specific data and directing the workflow down the appropriate branch.

Each branch can have:

  • Its own conditions

  • Its own actions

  • Additional workflow steps

  • Nested Logic Conditions for more advanced routing

This allows a single workflow to handle multiple scenarios automatically.


Adding a Logic Condition

Once you have selected a workflow trigger:

  1. Click Add Action.

  2. Scroll to the Helpers section.

  3. Select Logic Condition.

  4. Create one or more branches.

  5. Define the conditions for each branch.

  6. Save the Logic Condition and continue building the workflow.

When the workflow runs, Lawcus evaluates each branch and sends the record down the branch whose conditions are met.


Understanding Branch Conditions

Each branch contains a condition builder that allows you to define exactly when that branch should execute.

When creating a condition, you'll configure:


Field :

The field you want to evaluate.

This can come from:

  • Trigger data

  • Matter fields

  • Contact fields

  • Custom fields

  • Data generated earlier in the workflow

Condition :

The rule used to compare the field value.

Common examples include:

  • Contains

  • Does Not Contain

  • Equals

  • Does Not Equal

  • Is Empty

  • Is Not Empty

Value :

The value the field will be compared against.

Together, these settings determine whether a record should continue down a particular branch.


Example: Route Matters Based on a Tag

Let's say you have a workflow that triggers whenever a new matter is created.

You want matters tagged "Probate" to follow one process, while all other matters follow a different process.

Rather than creating separate workflows, you can use a Logic Condition to split the workflow into two branches.

Branch A

Condition: Matter Tags contains "Probate"

Action: Create a task for the intake team.

Any matter that contains the Probate tag will enter this branch and perform the actions configured within it.

Branch B

Condition: Matter Tags does not contain "Probate"

Action: Perform a different action, such as assigning a task, sending a notification, updating a field, or ending the workflow.


Any matter without the Probate tag will automatically be routed to this branch.

In this example, a single workflow can handle two different processes based on the information available on the matter.


Using Multiple Conditions

A branch can contain more than one condition, allowing you to create more precise automation rules.

OR Conditions

Use OR when any condition can qualify a record.

Example:

  • Matter Stage is Hearing
    OR

  • Matter Stage is Discovery

If either condition is true, the workflow will enter that branch.

AND Conditions

Use AND when all conditions must be true.

Example:

  • Matter Tag contains "Litigation"
    AND

  • Matter Priority equals "High"

The workflow will only enter the branch when both conditions are met.

This flexibility makes it easy to build workflows that respond to a wide range of business scenarios.


Creating Additional Branches

Logic Conditions are not limited to just two branches.

You can create as many branches as needed, with each branch evaluating its own set of conditions.

For example, you could create separate branches for:

  • New Matters

  • Litigation Matters

  • Family Law Matters

  • High Priority Matters

  • Matters in Specific Stages

Each branch can perform completely different actions while remaining part of the same workflow.


Nested Logic Conditions

For more advanced automation, you can place a Logic Condition inside another branch.

For example:

  1. A workflow is triggered when a matter is created.

  2. The first Logic Condition routes matters based on tags.

  3. Within a specific branch, a second Logic Condition evaluates the matter stage.

  4. Different actions are then performed depending on the stage.

This creates a structured workflow that can handle increasingly detailed decision-making without requiring multiple independent workflows.


Why Use Logic Conditions?

Logic Conditions help you:

  • Reduce the number of workflows you need to maintain

  • Keep related automation in a single workflow

  • Route records automatically based on real-time data

  • Create personalized automation paths

  • Build scalable and organized workflow structures

  • Support complex business processes with minimal manual effort


Best Practices

To get the most out of Logic Conditions:

  • Use clear and descriptive branch names.

  • Keep related processes within the same workflow whenever possible.

  • Use AND and OR conditions to create precise routing rules.

  • Test each branch before deploying the workflow.

  • Use nested Logic Conditions only when additional decision-making is needed.


Summary

Logic Conditions add powerful decision-making to your workflows by allowing records to follow different paths based on criteria such as tags, stages, custom fields, and other record data. This helps you automate actions more efficiently, reduce the need for multiple workflows, and manage complex processes from a single, organized automation.

Did this answer your question?