FOR

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

Icon of FOR: blue arrows forming a loop

操作中的循环语句。FOR 使您能够指定增量以及循环发生的次数。 如果ToValue小于FromValue,循环将自动向下执行。

您可以在Snippet操作中创建 FOR 循环,作为使用FOR操作的备用方法。

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

通用

Email 聊天 电话 語音邮件 工作项目 短信

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

从值 The initial value.
结束值 循环将结束并关注 OnFinished 分支的值。
步骤步骤 The increment that will be added to the initial value.
计数器名称 Name of a variable to receive the current value of FromValue plus Step.

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

已完成

Path taken when the Repeat count exceeds the specified number.

重读

Path taken while the current Repeat count is less than or equal to the specified number.