What is a condition?#
A condition is a true or false test, written by you, about a document. "Order value over 50,000." "Supplier is overseas and the goods are containerised." "Line count above twenty."
Conditions live on their own page, Admin Settings > Conditions. Until October 2026 that page was called Rules Engine; it was renamed so it is not confused with business rules, which are fixed choices rather than tests you write.
It is the one piece of configuration here that you compose rather than choose.
What a condition does: it answers whether a document matches, so that a checklist item or lead scoring knows when to apply. On its own it does nothing.
It does nothing on its own#
Worth understanding first, because it explains what conditions are for.
A condition has no effect by itself. It is attached to something that needs one:
- A checklist item, so a step only applies when it is relevant
- Lead scoring, so a lead gains points when it matches
The condition says when. The thing it is attached to says what happens.
That separation is why one condition can drive several behaviours: "imported goods" can require a customs document on one checklist and an inspection on another, without either knowing about the other.
Approval workflows do not use conditions from this page. A workflow carries its own conditions, set on the workflow.
Building one#
A condition is an expression tree, and it has exactly four kinds of node.
Compare is the leaf: a field, an operator, and a value. total GTE 50000.
Group combines children with AND or OR.
Not negates whatever is inside it.
Lines is the one that makes conditions genuinely useful, and it is covered below.
Operators
| Kind | Operators |
|---|---|
| Comparison | equals · not equals · less than · at most · greater than · at least |
| Text | contains · starts with · ends with |
| Sets | in · not in |
| Presence | is null · is not null |
| Ranges | between |
| Dates | within last N days · within next N days |
The date operators are relative rather than absolute, which is what lets a condition keep meaning over time. "Due within the next 7 days" stays true as a condition; a fixed date would have to be edited weekly.
Conditions over lines
A document is a header and a set of lines, and most interesting conditions are about the lines.
Four quantifiers:
| Quantifier | True when |
|---|---|
| Some | At least one line matches |
| Every | All lines match |
| None | No line matches |
| Count | The number of matching lines satisfies a comparison |
That is what expresses conditions the header alone cannot. "Any single line over 10,000" catches a large item inside a modest order. "More than twenty lines" catches complexity rather than value. "No line has an account set" catches an incomplete document before it posts.
Without line quantifiers you would be limited to the order total - and a 60,000 order can be one big line or six hundred small ones, which are different risks needing different handling.
Where it belongs
A condition belongs to a submodule, because the fields available are that document's fields. A purchase order condition can test the order's value, supplier and lines; it cannot test an invoice's, because an invoice is a different document with different fields.
The expression is validated when saved and evaluated on the server, so it cannot be bypassed from a browser.
Reuse and the usage count#
Conditions are meant to be reused. Write "over 50,000" once and attach it to everything that should care.
The system counts how many things reference each condition and shows it, and a condition in use cannot be deleted until they let go.
That looks obstructive and is protecting you. Deleting a condition a checklist item uses would leave the item with a test that no longer exists - and the failure mode is silent: the item either stops applying or starts applying to everything, and nobody notices until a document posts without what it needed.
To remove one, detach it from its consumers first. The count tells you how many to find.
Naming#
Name the condition, not its purpose.
"Over 50,000" is right. "Customs checklist threshold" is wrong, because the moment you attach it to a second thing the name is a lie - and the second use is the entire reason conditions are reusable.
Deactivating#
A condition can be made inactive rather than deleted, which stops it matching without breaking its references.
Useful for a condition you want to suspend - a seasonal control, a threshold under review - where deleting and rebuilding would lose the attachments. While a condition is off, the checklist items that use it are never required.
Testing one#
The Test against record panel checks the expression against a real record: paste the id of a record of the chosen type and Run test. The result says whether the condition matches, does not match, or lacks the data to decide, and which fields were missing.
Creating one#
Go to Admin Settings > Conditions and choose New Condition.
- Name the condition.
- Choose the submodule whose fields it tests.
- Build the expression - comparisons over header fields, quantifiers over lines, grouped with and, or and not.
- Save, then attach it to a checklist item or a lead scoring rule.
Common questions#
What does a condition do? It says when. The thing it is attached to - a checklist item or a lead scoring rule - says what happens.
Is a condition the same as a business rule? No. A business rule is a fixed choice. A condition is a test you write yourself.
What can a condition test? Comparisons on a document's fields, groups with and, or and not, and quantifiers over lines: some, every, none and count.
Why can I not delete a condition? Something still uses it. Detach it from its checklist items or lead scoring rules first; the usage count tells you how many.
Where do I find conditions? On Admin Settings > Conditions. Until October 2026 that page was called Rules Engine.
What happens next#
Nothing, until you attach it. Once attached, it is evaluated whenever the thing it is attached to needs to know - when a checklist is assessed for its items, or when a lead is scored.