ComfyUI_Comfyroll_CustomNodes>⚙️ CR Set Switch From String
ComfyUI_Comfyroll_CustomNodes
时间:2025/06/28

⚙️ CR Set Switch From String

节点功能:用于根据输入的字符串匹配来设置开关位置。
⚙️ CR Set Switch From String-节点参数说明
输入参数
text用于匹配的输入文本,支持强制输入。
输出参数
switch匹配成功后返回的整数值(1~4)。
show_help节点帮助链接。
控件参数
switch_1匹配时返回值为 1。
switch_2匹配时返回值为 2。
switch_3匹配时返回值为 3。
switch_4匹配时返回值为 4。

只有switch4匹配到了text,故输出了4。

广告

可加入知识星球获取所有示例工作流

广告

微信扫码入群,加入AIGC大家庭,与大家一起交流学习