> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/and/document-field/if-country-in-field.md).

# 字段中的国家/地区

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-75fb365507a14b104ad14ec616696e0346a57982%2Fimage%20(55).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## **用途：**

此工作流卡片用于评估指定字段中的国家/地区是否属于某个贸易或政治区域（欧盟、申根区或 NAFTA）。根据评估结果，工作流可以通过 true 或 false 条件继续运行，从而在系统中执行后续操作。它特别适用于自动化区域特定的业务规则、确保合规，或根据地理归属触发特定工作流。

## **卡片组件：**

1. **字段名称**
   * **说明：** 指定存储国家/地区名称或代码的文档字段。
   * **详情：** 此字段应与文档中国家/地区数据的确切字段标识符一致。
2. **运算符**
   * **说明：** 指定所选字段中的国家/地区是否应与所选区域或协定匹配。
   * **选项：**
     * **是：** 若要使条件为 true，该国家/地区必须属于所选协定（欧盟、申根区或 NAFTA）。
     * **不是：** 若要使条件为 true，该国家/地区不得属于所选协定。
3. **国家/地区比较**
   * **说明：** 定义是否将字段中的国家/地区与特定政治或贸易协定进行比对。
   * **选项：**
     * **欧盟：** 卡片会检查该国家/地区是否为欧盟成员。
     * **申根区：** 卡片会检查该国家/地区是否属于申根区。
     * **NAFTA：** 卡片会检查该国家/地区是否为 NAFTA 协定成员。
4. **布尔值**
   * **说明：** 定义比较结果。如果该国家/地区符合条件，工作流将按指定的布尔值继续运行。
   * **选项：**
     * **True：** 条件匹配时，工作流继续运行。
     * **False：** 条件不匹配时，工作流继续运行。

## **功能：**

* **条件评估：**
  * 系统会根据所选运算符，评估字段中指定的国家/地区是否属于所选区域或协定（欧盟、申根区或 NAFTA）。评估时会将国家/地区名称或代码与各组预定义的成员列表进行比对。
* **执行操作：**
  * **True 条件：** 如果字段中的国家/地区与所选区域匹配（根据运算符判断），工作流将按指定的 true 条件继续运行。这可以触发后续操作，例如路由文档、应用特殊处理规则，或启用区域特定功能。
  * **False 条件：** 如果该国家/地区与所选区域不匹配（根据运算符判断），工作流将按指定的 false 条件继续运行，以便根据系统设置执行其他操作或终止工作流。

## **设置和配置：**

* 用户通过选择包含国家/地区的文档字段并指定区域（欧盟、申根区或 NAFTA）来配置此卡片。然后，从下拉列表中选择运算符，以定义该国家/地区必须属于还是不得属于所选区域。最后，用户设置继续条件（true 或 false），以决定工作流的下一步。

## **结论：**

“字段中的国家/地区比较”工作流卡片是自动化地理规则相关流程的重要工具，例如确保遵守贸易协定或政治归属规则。通过将国家/地区数据与欧盟、申根区或 NAFTA 等特定区域进行比对，此卡片可确保系统应用正确的处理逻辑，从而提高效率，并确保工作流根据地理条件准确执行。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/and/document-field/if-country-in-field.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
