1. 首页
  2. 文档
  3. Conditional loop (while)

白皮书下载

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

Conditional loop (while)

发刊日期:
2021/10/15

编辑团队:
实在学院

1、 Video example

 

2、 Function description

When the set conditions are true (you can add multiple conditions, and then merge all the condition results according to the condition relationship), repeat the execution of the component or process.

 

3、 Attribute description

● Conditional relationship:How do the following conditions combine results.

● Conditions:It is composed of judgment object 1, operator and condition object 2. Multiple conditions can be added for combined judgment.

● pattern:It is divided into ordinary mode and advanced mode. Ordinary mode can easily set the relationship between two comparison objects. Advanced mode allows you to enter a python expression.

● Judgment conditions:You can enter this attribute directly in advanced mode. You can enter a python expression, for example: 1 & lt; 2 and 5> four

 

4、 Use example

1. Execution logic

In this example, set the value of the temp variable to 10, and the variable will be - 1 for each cycle. When the variable is less than 5, jump out of the cycle and print the log.

2. Output results

When the setting variable is less than 5, output & ldquo; The current temp value is 5 & rdquo;.

 

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