Using Brackets to Group Conditions in Automated Workflows
Noca Flows: AI workflow automation you can set up from a plain-language prompt, connected to your CRM, ERP and other systems. Free plan available.
Many automated workflows only run when certain conditions are met. A workflow might start when an opportunity is closed, when a case is escalated, or when an account reaches a specific status.
Simple conditions are easy to write. But real business rules are often more complex, combining several conditions with AND and OR. Without a way to group them, it can be hard to express exactly what you mean.
Brackets solve this by grouping conditions together, so the workflow runs exactly when it should.
Why AND and OR Can Be Confusing
Consider this rule: run the workflow when an opportunity is in the West region and its amount is over 50,000, or when it’s in the East region and its amount is over 100,000.
Written in a single line without brackets, it becomes:
Region = West AND Amount > 50,000 OR Region = East AND Amount > 100,000
Depending on how the conditions are evaluated, this might not behave as intended. It’s also hard for someone else to read and understand.
How Brackets Help
Brackets group conditions that belong together:
(Region = West AND Amount > 50,000) OR (Region = East AND Amount > 100,000)
Now the meaning is clear. The workflow runs if either group of conditions is true.
Brackets help:
- Express complex business rules accurately
- Make conditions easier to read and review
- Avoid unexpected results from how AND and OR are evaluated
- Reduce the need for several separate workflows
Common Examples
Grouped conditions are useful for rules like:
- (Priority = High AND Status = Open) OR (Customer Tier = Premium)
- (Stage = Closed Won) AND (Amount > 10,000 OR Product = Enterprise)
- (Country = US OR Country = Canada) AND Lead Source = Web
Without and With Brackets
| Without brackets | With brackets | |
|---|---|---|
| Readability | Harder to follow | Clear grouping |
| Accuracy | Risk of unexpected results | Runs exactly as intended |
| Complex rules | Often split into several workflows | Handled in one place |
Tips for Writing Grouped Conditions
- Write the rule in plain language first, then translate it into conditions
- Group each set of related conditions in its own brackets
- Keep groups as simple as possible
- Test the workflow with records that should and shouldn’t trigger it
- Remember that conditions without brackets still work as before
Clear Rules, Reliable Workflows
The more precise your conditions, the more reliable your automation.
By grouping conditions with brackets, workflows can follow complex business rules accurately and stay easy to understand.
Because the right workflow should run at exactly the right time.