# Conditions and Filtering

Conditions and filtering are essential concepts found in many of Adalo's Components enabling you to control the behavior and appearance of your app based on specific criteria. Understanding these concepts will empower you to create dynamic and personalized user experiences.

## Before You Begin

* Have a basic understanding of [Databases](/database.md), [Screen & Components](/component-basics.md), and [Actions](/actions.md)

### **What are Conditions and Filtering?**

First let's define each term. Both of them run on what's called *If-Then logic, m*eaning that if something is true, then do this thing.

**Filtering:** Filtering is used to selectively display your app data based on predefined criteria. It allows you to sift through collections by applying specific rules to control what is shown and what is hidden.

**Conditions:** Conditions evaluate whether or not something should occur within your app. They allow you to set up logic to trigger actions and show or hide components based on user interactions or data values.

### **Key Differences:**

* **Purpose:** Conditions primarily control the behavior and appearance of components within your app, while filtering focuses on controlling the display of data.
* **Scope:** Conditions are often applied to individual components or actions within your app, affecting their visibility or interactivity. Filtering, on the other hand, is applied to collections of data to determine which records should be displayed based on certain conditions.

### Get Started

{% content-ref url="/spaces/-LhGHkPsv15svPIU5I7C/pages/xYBSZgZQDQ9SFuD9WEok" %}
[Filtering in Adalo](/component-basics/conditions-and-filtering/filtering-in-adalo.md)
{% endcontent-ref %}

{% content-ref url="/spaces/-LhGHkPsv15svPIU5I7C/pages/jAFmBplQH3wH0lR00MNS" %}
[Using Conditions in Adalo](/component-basics/conditions-and-filtering/using-conditions-in-adalo.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.adalo.com/component-basics/conditions-and-filtering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
