> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/solution-editor/logic/if.md).

# if

ifステップは、指定された条件が満たされた場合に、ステップを実行するためのものです。\
例えば、以下のスクリーンショットは、GoogleDriveのファイル名に `Test` を含んでいる場合Slackにメッセージを投稿するためにifステップを使用しています。

<figure><img src="https://files.readme.io/2fa38db-if_step.png" alt=""><figcaption></figcaption></figure>

また、ifステップの「︙」をクリックすることで、elseステップを作成することができます。\
elseステップは、ifステップの条件が合致しなかった場合に実行されるステップです。

<figure><img src="https://files.readme.io/1778f92-else.png" alt=""><figcaption></figcaption></figure>

## **ifステップの状態について**

ifステップの「状態」とは、値を比較するときの条件のことを指します。

<figure><img src="https://files.readme.io/c75343f-Screen_Shot_2023-01-31_at_4.14.59_PM.png" alt="" width="563"><figcaption></figcaption></figure>

<table><thead><tr><th width="118.63671875">状態名</th><th width="348.20703125">説明</th><th>受け付ける型</th></tr></thead><tbody><tr><td>等しい</td><td>データが、等しい場合、真になる</td><td>すべての型</td></tr><tr><td>等しくない</td><td>データが、等しくない場合、真になる</td><td>すべての型</td></tr><tr><td>空である</td><td>データが、空である場合、真になる</td><td>すべての型</td></tr><tr><td>空でない</td><td>データが、空でない場合、真になる</td><td>すべての型</td></tr><tr><td>含まれている</td><td>データが、値に含まれている場合、真になる</td><td>Array型、Object型、String型</td></tr><tr><td>含まれていない</td><td>データが、値に含まれていなければ、真になる</td><td>Array型、Object型、String型</td></tr><tr><td>以上</td><td>データが、値以上であれば、真になる</td><td>String型、Boolean型、Integer型、Decimal型、Date型、DateTime型</td></tr><tr><td>より大きい</td><td>データが、値より大きければ、真になる</td><td>String型、Boolean型、Integer型、Decimal型、Date型、DateTime型</td></tr><tr><td>以下</td><td>データが、値以下であれば、真になる</td><td>String型、Boolean型、Integer型、Decimal型、Date型、DateTime型</td></tr><tr><td>より小さい</td><td>データが、値より小さければ、真になる</td><td>String型、Boolean型、Integer型、Decimal型、Date型、DateTime型</td></tr><tr><td>真である</td><td>データが、真である場合、真になる</td><td>Boolean型、false, true という文字</td></tr><tr><td>真でない</td><td>データが、真ではない場合、真になる</td><td>Boolean型、false, true という文字</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-embed.anyflow.jp/solution-editor/logic/if.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
