# 如果 (If)

该按钮用于检查条件，如果条件为真，则执行 if 块的命令，并运行到蓝线。如果条件为假，则运行到红线。

<figure><img src="/files/8dq7qpUX3bv1pf398RfY" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="258">参数</th><th>说明</th></tr></thead><tbody><tr><td>Variable</td><td>选择要比较的变量</td></tr><tr><td>Operator</td><td>选择要比较的运算符</td></tr><tr><td>Variable or value</td><td>选择一个变量或输入一个值进行比较</td></tr></tbody></table>

比较运算符包括：

* **<** ：比较小于。如果条件为真，则会出现绿线；如果条件为假，则会出现红线。与 **>** 相同； **<=; >=**。
* **=** ：比较相等。如果你的两个比较值相等，它们就会去蓝线，如果不相等，它们就会去红线。
* **!=** ：比较不相等。如果你的两个比较值不同（不相等），它们就会走蓝线，如果相等，它们就会走红线。
* **Starts with**：如果您选择的变量以您在变量或值字段中输入的值开头，则会出现一条蓝线，否则将出现一条红线。例如，变量 a 的值为“hello！this is Hidemium”。在变量或值字段中，如果输入 hello，结果将显示在蓝线上。
* **Ends with**：如果您选择的变量以您在变量或值字段中输入的值结尾，则会出现一条蓝线，否则将出现一条红线。例如，变量 a 的值为“hello！这是 Hidemium”。在变量或值字段中，如果输入 Hidemium，结果将显示在蓝线上。
* **Contains**：如果您选择的变量包含您在变量或值字段中输入的值，则会出现一条蓝线，否则会出现一条红线。例如，变量 a 的值为“hello！this is Hidemium”。在变量或值字段中，如果输入此值，结果将显示在蓝线上。


---

# 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://docs.hidemium.io/zi-dong-hua-yong-hu-shou-ce/qi-ta-other/ru-guo-if.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.
