{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":42052,"path":"platform-user-interface/c_ConditionBuilder.md","title":"Condition builder","bundle":null,"doc_type":null,"release":"australia","body":"\n# Condition builder\n\nA condition builder constructs a condition statement with a series of contextually generated fields. Condition builders are used in many operations, such as creating filters, administering surveys, and administering access control.\n\n## Condition builder format\n\nA condition consists of three parts:\n\n-   Field: a choice list based on the table and user access rights. The choice list can include fields on related tables by dot-walking.\n-   Operator: a choice list based on the field type. For example, in the Incident \\[incident\\] table, the greater than operator does not apply to the **Active** field but it does apply to the **Priority** field.\n-   Value: a text entry field or a choice list, depending on field type. For example, in the Incident \\[incident\\] table, the **Active** field offers a choice list with the values **true**, **false**, and **empty**, while the **Short Description** field offers a text entry field.\n\nThe conditions display lists in Core UI as a breadcrumb, summarizing what you have selected.\n\n\\[Omitted image \"condition-builder-breadcrumb.png\"\\] Alt text: Condition builder breadcrumb list in Core UI.\n\n**Note:** The condition builder breadcrumb in Core UI list view can be truncated depending on the values of two system properties:\n\n-   **glide.ui.breadcrumb\\_max\\_entries**: specifies the maximum number of items displayed in the breadcrumb, with a default of 10.\n-   **glide.ui.export.choice\\_list\\_max\\_characters**: specifies the maximum number of characters displayed for a list within the breadcrumb, with a default of 80.\n\nFor more information, see [KB1962280](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1962280).\n\n## Condition builder actions\n\nYou can add a dependent condition by clicking **AND** or **OR** next to the condition. You can add a top-level condition by clicking **AND** or **OR** on the condition builder toolbar in addition to the conditions. You can remove a condition by clicking the delete icon \\(X\\) next to the condition.\n\n\\[Omitted image \"ExampleConditionActiveIsTrueAndCallerIsNotEmpty.png\"\\] Alt text: Example AND condition.\n\nFor an example of a scripted filter see the KB article [Creating dynamic JavaScript filters in reports](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746219).\n\n-   **[Filtering on empty fields](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/t_FilteringOnEmptyFields.md)**  \nMost filter operations do not return empty fields in their result set. You can create a filter that displays records with an empty field value in addition to records that match the initial filter conditions.\n-   **[Values for date/time fields](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/c_ValuesForDateTimeFields.md)**  \nWhen you filter on fields of type date/time, such as the **Created** field on any task record, several time-related options are available, such as **Today**, **This week**, **Last 3 months**, and so on.\n-   **[Comparing field values](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/r_ComparingFieldValues.md)**  \nField comparison allows users to evaluate equality between fields on the same table or on related tables by using operators in the condition builder.\n\n**Parent Topic:**[Create a condition statement using the condition builder](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/create-cond-state-using-cond-build.md)\n\n**Related topics**  \n\n\n[Operators available for filters and queries]()\n\n[OR conditions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/c_UsingORConditions.md)\n\n[Filters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/c_Filters.md)\n\n[Dot-walking to data in related tables](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/c_DotWalking.md)\n\n"}}