mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00

* add new doc (#5175) Co-authored-by: dreamer6680 <146868355@qq.com> * Test docs (#5235) * fix: change the page of doc * chore: add new dependencies, update global styles/layout, optimize docs, add Feishu & GitHub icons, update API examples * fix: docs/index 404 not found * Update environment variable names, optimize styles, add new API routes, fix component styles, adjust documentation, and update GitHub and Feishu icons * update readme * feat: add a linkfastgpt compontent * feat: update new doc * fix:remove unuse page and redirect homepage to docs (#5288) * fix:remove some unuse doc * fix: redirect homepage to doc * git ignore * fix:navbar to index (#5295) * sidbar * fix: navtab unlight (#5298) * doc --------- Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: dreamer6680 <146868355@qq.com>
28 lines
634 B
Plaintext
28 lines
634 B
Plaintext
---
|
|
title: 判断器
|
|
description: FastGPT 判断器模块介绍
|
|
---
|
|
|
|
## 特点
|
|
|
|
- 可重复添加
|
|
- 有外部输入
|
|
- 触发执行
|
|
|
|

|
|
|
|
## 功能
|
|
|
|
对任意变量进行`IF`判断,若满足条件则执行`IF`分支,不满足条件执行`ELSE`分支。
|
|
|
|
|
|
上述例子中若「知识库引用」变量的长度等于0则执行`IF`分支,否则执行`ELSE`分支。
|
|
|
|
|
|
支持增加更多的判断条件和分支,同编程语言中的`IF`语句逻辑相同。
|
|
|
|
## 作用
|
|
|
|
适用场景有:让大模型做判断后输出固定内容,根据大模型回复内容判断是否触发后续模块。
|
|
|