白皮书下载
Add conditional judgment (if)
1、 Video example
2、 Function description
If the conditions are met (you can add multiple conditions, and then merge all the condition results according to the condition relationship), the content in the current component will be executed. If there are branch processes, you can use & ldquo; Otherwise, if (else if) & rdquo; Components.
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, it is a large file.
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.




