tencent cloud

Tencent Cloud Agent Development Platform

Release Notes and Announcements
Release Notes
Product Announcement
Product Introduction
Product Overview
Advantages
Use Cases
Model Introduction
Purchase Guide
Package Subscription
Previous Version
Getting Started
Agent Application and Its Three Modes
Creating a "Content Summary Assistant" in Standard Mode
Creating a “Webpage Scraping Assistant” in Single Workflow Mode
Creating a “Stand-up Comedy Content Creation Assistant” in Multi-Agent Mode
Operation Guide
Application Development
Workflow
Multi-Agent
Knowledge Base
Widget
Plugin Marketplace
Model List 
Prompt Templates
Application Templates
Platform Management
Business, Workspace and Permissions
API Documentation
History
API Category
Making API Requests
Atomic Capability APIs
Operation Optimization APIs
Document Library APIs
Q&A Database APIs
Knowledge Tag APIs
Application Management APIs
Enterprise Management APIs
Billing APIs
Release Management APIs
Dialogue Endpoint APIs
Data Statistics APIs
Data Types
Error Codes
Application API Documentation
Dialogue API Overview
Dialog API Documentation (WebSocket)
Dialog API Documentation (HTTP SSE)
Image Chat or File Chat (Real-time Document Parsing + Chat)
Offline Document Upload
Tencent Cloud Agent Development Platform Operation COS Guide
ADP Document Parsing Protocol
FAQs
Product FAQs
Technical FAQs
Related Agreements
Tencent Cloud Agent Development Platform Service Level Agreement
Tencent Cloud Agent Development Platform Service Specific Terms
Tencent Cloud Agent Development Platform Privacy Policy
Tencent Cloud Agent Development Platform Data Processing and Security Agreement
Open-Source License Statement
Lighthouse OpenClaw Connector Plugin Service Agreement
Contact Us
Glossary

IF/ELSE Node

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-02-02 16:15:12

Node Function

IF/ELSE Node belongs to Basic Node, compares two input values based on logic, and determines the subsequent branch to route to according to the result judgment.




Directions

Model Settings

Supports user selection of large models used in conditional judgment. When the mode is set to "large model semantic judgment", conditions are judged through the model, only supporting selection of large models the account has permission to use (read relevant guidelines for large model permission application in Model Marketplace).




Set Conditions

Supports adding if-else conditions, each condition supports configuring logical expressions, and expressions support "AND" and "OR" logic. These logical expressions can be flexibly organized based on requirements.
A logical expression supports two methods: referring to the output variable of an ancestor node and filling a fixed value.
Supports switching judgment methods, including "LLM Semantic judgment" and "accurate judgment". Recommended for use is LLM Semantic Judgment, where the model used matches the "application's thinking model". Use accurate judgment when strict judgment conditions are required.
"else" means failing to satisfy all conditions, supports skipping configuration. If you need to process fallback response, it can be connected to "reply node".


Condition Configuration

Logical expression
Left Value
Right Value
Equal to
string
string
int
int
float
float
bool
bool
array<string>
array<string>
array<int>
array<int>
array<float>
array<float>
array<bool>
array<bool>
Not equal to
string
string
int
int
float
float
bool
bool
array<string>
array<string>
array<int>
array<int>
array<float>
array<float>
array<bool>
array<bool>
Greater than
int
int, string (supported only when manually entering a convertible numeric string)
float
int, string (supported only when manually entering a convertible numeric string)
Greater than or equal to
int
int, string (supported only when manually entering a convertible numeric string)
float
int, string (supported only when manually entering a convertible numeric string)
Less than
int
int, string (supported only when manually entering a convertible numeric string)
float
int, string (supported only when manually entering a convertible numeric string)
Less than or equal to
int
int, string (supported only when manually entering a convertible numeric string)
float
int, string (supported only when manually entering a convertible numeric string)
filled
string, int, float, bool, array<string>, array<int>, array<float>, array<bool>, array<object>, object, file, doc, img, aud, vid,array<file>, array<doc>, array<img>, array<aud>, array<vid>

unpadded
string, int, float, bool, array<string>, array<int>, array<float>, array<bool>, array<object>, object, file, doc, img, aud, vid,array<file>, array<doc>, array<img>, array<aud>, array<vid>

belong
string
string
int
int
float
float
bool
bool
array<string>
array<string>
array<int>
array<int>
array<float>
array<float>
array<bool>
array<bool>
Not in
string
string
int
int
float
float
bool
bool
array<string>
array<string>
array<int>
array<int>
array<float>
array<float>
array<bool>
array<bool>
Include
string
string
array<string>
array<string>
array<int>
array<int>
array<float>
array<float>
array<bool>
array<bool>
Not included
string
string
array<string>
array<string>
array<int>
array<int>
array<float>
array<float>
array<bool>
array<bool>

Output Variable

By default include the selected serial number of conditional statements, as well as runtime error message Error (data type is object, this field is empty when functioning properly). Does not support manually add.




Application Example

Write an article based on the user input topic and style, and judge through conditional judgment node whether the user requires article cover generation.



Among them, the IF/ELSE node configuration is as follows:




FAQs

Does the "else" part of the IF/ELSE node need to connect to the subsequent process?
Each branch needs to connect to the subsequent process.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan