Files
playbook/docs/tsl/reference/catalog/system/06_conditional.md
T
csh 540b3c0a1b 📝 docs(tsl): restructure agent-facing reference
Rework TSL syntax, catalog, modules, and routing docs around deterministic agent lookup and generation.

Split large catalog pages into focused function fact pages, remove obsolete pending/verified/unavailable paths, and update consistency tests for the new structure.
2026-06-09 17:24:30 +08:00

831 B

系统相关函数 - 条件选择函数

文档类型:函数事实页 是否可直接用于生成代码:是;本页函数条目均包含参数表 遇到不确定时:回到 ../system.md../../index.md

条件选择函数

ifThen(condition, true_value, false_value)

用途:条件成立返回 true_value,否则返回 false_value。

参数个数:3 返回值:true_value 或 false_value

参数位置 参数名 必填 接收类型 说明
1 condition 整数 判断条件
2 true_value 整数 条件成立时返回值
3 false_value 整数 条件不成立时返回值