Source: https://nishanth-fern-test.docs-staging.pageloop.ai/desktop/using-and-and-or-inside-the-widget-segments

# Using AND and OR inside the widget segments

While setting up segments for your widgets, use the **AND/OR** settings for conditions. You can use these conditions in combination as well.

**AND**: When you want every single one of your conditions to be evaluated, use the AND operator.

**OR**: When you want any one of your conditions to be evaluated, use the OR operator.

- Visibility Rule conditions support both **AND** and **OR** operations. ![clm\_db\_desktop\_and\_or\_visibility](/images/66/clm_db_desktop_and_or_visibility-66499fb4.png)
- **Select By Tags** also supports the **AND/OR** operations.

![RB\_dashboard\_widget\_tag\_and\_or\_condition](/images/2d/RB_dashboard_widget_tag_and_or_condition-2d29da5a.png)

- **Search Scope** by Tags also supports the **AND/OR** operations.

![RB\_dashboard\_widget\_search\_tag\_or\_and\_condition](/images/07/RB_dashboard_widget_search_tag_or_and_condition-071059a3.png)

- Use the following steps to use this setup:

  1. On the Whatfix Guidance dashboard, click **Widgets**. ![ia\_left\_nav\_widgets](/images/d4/ia_left_nav_widgets-d468b7f8.png)
  2. Click **All widgets**. ![ia\_dashboard\_left\_nave\_allwidgets](/images/4f/ia_dashboard_left_nave_allwidgets-4f7783ac.png)

Info:

- **AND** acts as a delimiter.
- The parentheses between these conditions are denoted by the light grey background. ![clm\_db\_desktop\_and\_or\_visibility\_delim](/images/c3/clm_db_desktop_and_or_visibility_delim-c3499717.png)

1. Select the widget you want to create. ![Select\_widget\_to\_create](/images/04/Select_widget_to_create-0435690a.png)
2. Configure your segmentation and use the conditions for Visibility Rules and for selecting tags.
