Set Conditions
Conditions are rules that compare a record's field to a value, such as "Status is Approved" or "Fee Amount greater than 0". You use them to decide when an automation runs, which branch it takes, and which records it finds.
Prerequisites
- An automation with a trigger or action that uses conditions (see below).
- The fields you want to test exist on the entity.
Where conditions are used
| Place | Setting | Effect |
|---|---|---|
| When records matches condition trigger | Condition Fields | The automation runs only when the record meets the conditions |
| IF/ELSE Conditions action | Branches | Each branch has its own conditions; the first branch that matches runs |
| Find Records action | Condition Fields | Returns the records that meet the conditions |
| Evaluate Record Set action | Record predicate | Checks each record in a list found earlier |
| On Appointment Change trigger | Appointment Search Conditions | Limits which appointment changes start the automation (see Trigger Reference) |
Steps
Pick the field
In the first condition row (it starts with When), choose a field in Select field. The list shows the entity's fields, plus Record ID.
Pick the operator
Choose an operator. The operators offered depend on the field type (see the table below).
Enter the value
Type or pick the value to compare against. For dropdown fields, pick the option from the list. For is empty and is not empty, no value is needed.
Add more conditions
Click Add condition to add another row. On the second row, choose And (all rows must match) or Or (any row can match).
Save
Click Save Changes. If a row is incomplete, the panel shows "Please complete all required fields above".
One And / Or per group
All rows in one condition group share the same connector: changing And to Or on one row changes it for the whole group. To mix the two, for example "Status is Approved AND (Type is Residential OR Type is Commercial)", use is any of for the OR part, or use separate branches in an IF/ELSE Conditions action.
Operators by field type
| Field type | Operators |
|---|---|
| Text, email, and similar | contains, equals, does not equal, is empty, is not empty |
| Number | =, !=, >, >=, <, <=, is empty, is not empty |
| Date | is, is not, is after, is on or after, is before, is on or before, is empty, is not empty |
| Dropdown, checkbox, radio, user | is, is not, is any of, is none of, is empty, is not empty |
| Boolean (yes / no) | is, is empty, is not empty |
| Association (link to other records) | The dropdown operators, plus has at least (records) and has at most (records) |
| Record ID | is any of, is none of, is empty, is not empty |
contains ignores upper and lower case.
Comparing to a value from an earlier step
In action conditions (IF/ELSE Conditions, Find Records, Evaluate Record Set), you can compare a field to a value produced by an earlier step instead of a fixed value. Under the value box, click Use a prior-node value, then click + and choose the step and field. To go back to a fixed value, click Use a configured value.
For example, Find Records on Inspection with "Permit is any of" the trigger's Record ID finds every inspection linked to the permit that started the run.
Trigger conditions always compare to fixed values, because nothing has run before the trigger.
Fields on linked records
In IF/ELSE Conditions branches you can also test fields on records linked through an association field. Trigger conditions only offer the entity's own fields.
Example
Start an automation when a Building Permit is approved and has not yet been issued.
| Row | Field | Operator | Value |
|---|---|---|---|
| When | Status | is | Approved |
| And | Permit Issued Date | is empty |
Common mistakes
- Expecting And and Or to be mixed in one group. One connector applies to every row.
- Testing a dropdown with a text-style comparison. Pick the option from the list so the condition matches the option exactly.
- Adding new options to a dropdown and expecting existing conditions to know about them. Conditions keep the field definition from when they were saved; open the automation, re-select the field and value, and save again.
- Using equals on a text field when users type values inconsistently. Consider a dropdown field instead.