mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-02 01:02:05 +08:00
4b24472106
* docs(i18n): translate batch 1 * docs(i18n): translate batch 2 * docs(i18n): translate batch 3 (20 files) - openapi/: app, share - faq/: all 8 files - use-cases/: index, external-integration (5 files), app-cases (4 files) Translated using North American style with natural, concise language. Preserved MDX syntax, code blocks, images, and component imports. * docs(i18n): translate protocol docs * docs(i18n): translate introduction docs (part 1) * docs(i18n): translate use-cases docs * docs(i18n): translate introduction docs (part 2 - batch 1) * docs(i18n): translate final 9 files * fix(i18n): fix YAML and MDX syntax errors in translated files - Add quotes to description with colon in submit_application_template.en.mdx - Remove duplicate Chinese content in translate-subtitle-using-gpt.en.mdx - Fix unclosed details tag issue * docs(i18n): translate all meta.json navigation files * fix(i18n): translate Chinese separators in meta.en.json files * translate * translate * i18n --------- Co-authored-by: archer <archer@archerdeMac-mini.local> Co-authored-by: archer <545436317@qq.com>
25 lines
789 B
Plaintext
25 lines
789 B
Plaintext
---
|
|
title: Conditional (IF/ELSE)
|
|
description: FastGPT Conditional module overview
|
|
---
|
|
|
|
## Features
|
|
|
|
- Can be added multiple times
|
|
- Has external inputs
|
|
- Trigger-based execution
|
|
|
|

|
|
|
|
## Function
|
|
|
|
Performs an `IF` evaluation on any variable. If the condition is met, the `IF` branch executes; otherwise the `ELSE` branch runs.
|
|
|
|
In the example above, if the "Knowledge Base Citation" variable has a length of 0, the `IF` branch executes; otherwise the `ELSE` branch runs.
|
|
|
|
You can add more conditions and branches, following the same logic as `IF` statements in programming languages.
|
|
|
|
## Use Cases
|
|
|
|
Common scenarios include: having the LLM make a judgment and then output fixed content, or checking the LLM's response to decide whether to trigger downstream modules.
|