Switch
A single node that switches on a value and has one output per case (listed below) plus a Default output. Wire each output to the commands for that case (no separate Case / End Switch commands).
概述
Switch 是 AutoFlowRPA 中 Conditions 类别下的无代码自动化步骤。 它会根据条件将工作流分支到不同的路径。 您可以配置 2 个参数,精确控制其行为方式。 它是可在可视化编辑器中拖入工作流的 340 个命令之一,无需编写脚本。
功能说明
A single node that switches on a value and has one output per case (listed below) plus a Default output. Wire each output to the commands for that case (no separate Case / End Switch commands).
参数
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| Value to switch on | string | 必填 | Compared against each case (one per line). 示例: {{{status}}} 支持变量 | |
| Cases (one per line) | multiline | 必填 | Each line is a case value and becomes its own output, in order. An unmatched value uses the Default output. 示例: active
pending
closed 支持变量 |
如何使用 Switch
- 1
打开 AutoFlowRPA,将 Switch 命令从 Conditions 分组拖放到画布上。
- 2
在侧边面板中设置其参数——Switch 有 2 个可配置字段。
- 3
将它连入你的工作流并点击运行。一切都在你的本机上本地执行。
常见问题
Switch 命令有什么作用?
A single node that switches on a value and has one output per case (listed below) plus a Default output. Wire each output to the commands for that case (no separate Case / End Switch commands).
Switch 命令属于哪个分组?
Switch 属于 Conditions 分组。AutoFlowRPA 附带 340+ 个现成命令,无需代码即可组合使用。
Switch 命令需要任何参数吗?
需要——Switch 有 2 个可配置字段,均可在可视化节点编辑器中编辑。