> 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/then/document-field/invert-checkbox.md).

# 反转复选框

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

## **用途：**

此工作流卡片用于反转复选框字段的当前状态。如果复选框已选中（true），则会取消选中（false）；反之亦然。此卡片会根据 **“Where”** 和 **“And Sections”** 中设置的条件执行反转。借助此卡片，可根据特定条件切换复选框，从而自动化工作流。

## **卡片组件：**

1. **字段名称**
   * **说明**：指定要反转的复选框字段。
   * **详情**：系统会根据所选复选框字段的当前状态，将其从 true 切换为 false，或从 false 切换为 true。

## **功能：**

* **条件评估**：系统会评估 **“Where”** 和 **“And Sections”** 中定义的条件：
  * 如果**两个条件均为 true**，则执行 **“Then Section”** 中的操作，即切换复选框字段的状态。
  * 如果**任一条件为 false**，则不会执行此卡片，也不会更改复选框字段。
* **执行操作**：如果 **“Where”** 和 **“And Sections”** 中的条件评估结果均为 true，则反转复选框字段的状态：
  * 如果复选框已选中（true），则取消选中（false）。
  * 如果复选框未选中（false），则选中（true）。

## **设置与配置：**

要配置此卡片，用户需要：

1. **选择要反转的复选框字段**（Field Name）。系统会列出文档中可供选择的复选框字段。
2. 只有 **“Where”** 和 **“And Sections”** 中的条件均为 true 时，才会反转该复选框字段。

## **结论：**

**“Invert checkbox \[Field Name]”** 工作流卡片提供了一种简单而强大的自动化方式，可根据特定条件切换复选框值。此卡片减少了手动调整复选框的需要，从而提升文档处理效率，并确保各工作流之间的一致性。


---

# 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/then/document-field/invert-checkbox.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.
