1. 首页
  2. 文档
  3. Otherwise, if (else if)

白皮书下载

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

Otherwise, if (else if)

发刊日期:
2021/10/15

编辑团队:
实在学院

1、 Video example

 

2、 Function description

It needs to be used together with the condition judgment (if) component. If the condition is met (multiple conditions can be added, and then all condition results can be merged according to the condition relationship), the content in the current component will be executed. If there are multiple branches, the process can continue to use the else if component.

 

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

Judge whether a file is too large. If it exceeds 10m, the pop-up prompt file is a file greater than 10m. If it is less than 10m, the pop-up prompt file is a file less than 10m.

1. Execution logic

(1) Define a custom input box to select files.

(2) Gets the selected file and assigns it to a variable.

(3) Gets the file size.

(4) Converts the obtained file size value (string) to a numeric value.

(5) Compare the converted value with a value.

2. Output results

The pop-up window shows whether the file is greater than 10m.

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