Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/how-to-use-and-and-or-conditions-inside-widget-segments

# How to use AND and OR Conditions inside Widget Segments

While setting up your widget segments, you can use the AND/OR settings for conditions. You can also use both these conditions together as a combination in a segment.

Here, the AND acts as a delimiter and all the conditions between two ANDs gets evaluated.

### Use Cases

You can use AND/OR conditions in the following,

- Visibility rule conditions For example: If you have multiple hostnames and you would like to set one common segment, set the Visibility Rules with an OR condition.
- Segment content by tag content
- Search Scope by tags

Use the following steps to use this setup:

1. On the Whatfix Guidance dashboard, click **Widgets**. ![ia\_left\_nav\_widgets2](/images/76/ia_left_nav_widgets-2-769e0370.png)

2. Click **All widgets**. ![ia\_widgets\_all\_widgets1](/images/b8/ia_widgets_all_widgets-1-b8a90a48.png)

3. Click **Create widget**. ![CLM\_DB\_CreateWidget2](/images/ef/CLM_DB_CreateWidget-2-ef349731.png)

4. Select the widget you want to create.

**Info**

- AND acts as a delimiter
- The parentheses between these conditions would be denoted by the light grey background
