⚙️ 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。