# 条件とフィルタリング

条件とフィルタリングは、Adaloの多くのコンポーネントで見られる重要な概念であり、特定の基準に基づいてアプリの動作や外観を制御することができます。これらの概念を理解することで、動的で個人に適したユーザーエクスペリエンスを作成する力を得ることができます。

## はじめに

* [データベース](/ja/database.md)、[画面とコンポーネント](/ja/component-basics.md)、および[アクション](/ja/action-basics.md)の基本的な理解を持っている必要があります

### **条件とフィルタリングとは？**

まず、それぞれの用語を定義しましょう。どちらも、\_If-Thenロジック\_と呼ばれるものに基づいて実行されます。つまり、何かが真であれば、この処理を行います。

**フィルタリング:** フィルタリングは、事前に定義された基準に基づいてアプリのデータを選択的に表示するために使用されます。特定のルールを適用してコレクションをふるい分けることで、表示されるものと非表示にするものを制御することができます。

**条件:** 条件は、アプリ内で何かが発生すべきかどうかを評価します。ユーザーの操作やデータの値に基づいてアクションをトリガーし、コンポーネントの表示または非表示を設定するためのロジックを設定することができます。

### **主な違い:**

* **目的:** 条件は主にアプリ内のコンポーネントの動作と外観を制御しますが、フィルタリングはデータの表示を制御します。
* **範囲:** 条件は、アプリ内の個々のコンポーネントやアクションにしばしば適用され、それらの可視性や相互作用に影響を与えます。一方、フィルタリングは、特定の条件に基づいて表示されるべきレコードを決定するためにデータのコレクションに適用されます。

### 開始方法

{% content-ref url="/pages/3rLwszheezS2ctrkVqsH" %}
[Adaloでのフィルタリング](/ja/component-basics/conditions-and-filtering/filtering-in-adalo.md)
{% endcontent-ref %}

{% content-ref url="/pages/ENajIbq4oI4o8zQfObds" %}
[Adaloでの条件使用](/ja/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/ja/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.
