1. 首页
  2. 文档
  3. Cycle count (for)

白皮书下载

实在智能Agent产品白皮书(7.2.0).pdf

Cycle count (for)

发刊日期:
2021/10/15

编辑团队:
实在学院

1、 Video example   

 

2、 Function description

When some operations need to be executed circularly, this component can be used to repeat the relevant operations embedded in the component. Each time, the index value increases according to the set progressive value until the index value reaches the end value.

 

3、 Attribute description

Index name: a variable used to control the number of cycles. The default is I, which can be selected from the variable library.
Initial value: the initial value setting of the index. The default value is 0. It can be modified as needed. It can only be numbers.
End value: set the end value of the index. After the index reaches this value, the cycle will end. The default value is 10. It can be modified as needed. It can only be a number.
Stepping: the value added to the index every time it is executed. The default value is 1. It can be modified as needed. It can only be a number.

  计次循环属性

 

4、 Use example

1. Execution logic

In the property bar, set the index name and create a variable. The default variable name here is I and the initial value is 0. Each cycle will increase the index I by 1. When I reaches 10, it will jump out of the cycle.

  

2. Output results

In the counting cycle, the value of index I is output for a total of 10 times, and the value of I is increased by 1 each time.

计次循环结果

企业培训
技术支持
加入社群
公众号
实在智能Agent学习群
扫码关注微信公众号