General Condition Judgment V2
Description
This operator is used to perform logical judgment on the value, length, or object properties of the input data, and output a boolean signal based on the comparison result.
Overview
Compares specified attributes of any data type with thresholds and outputs a boolean result.
Scenarios
-
Flow Control : Decides the algorithm flow branch based on the size, quantity, or specific attribute value of the calculated result from the previous step. For example, if the number of detected targets is greater than 0, execute grabbing; otherwise, retake the photo.
-
Status Check : Determines if an input value is Equal to the expected value.
-
Loop Control : Acts as a judgment condition in a loop structure.
Inputs and Outputs
Inputs |
Data to be judged: The data type of the input needs to be instantiated. |
Outputs |
True Output: Outputs True when the judgment condition is met, otherwise outputs False. False Output: Outputs True when the judgment condition is not met, otherwise outputs False. |
Parameters
Comparison Object Type
Description |
Type of the comparison target object. |
Parameter Range |
Default: Float |
Judge Condition
Description |
Selects the logical operator used to compare the data attribute value against the threshold. |
Tuning Instructions |
Select the comparison relationship as needed. |
Parameter Range |
Values/Range:
Default: Equal To |
Judgment Threshold
Description |
The threshold value used for comparison against the selected attribute value of the input data. |
Tuning Instructions |
Enter a value for comparison:
Ensure that the entered value matches the target comparison type. A type mismatch will result in an error. |
Parameter Range |
Default: 0 |
Comparison Attribute
Description |
This parameter is displayed dynamically based on the currently selected data type and determines what this node actually compares. Common cases include comparing the current value of the object itself, the length of a list, or a sub-attribute of an object. First decide whether you want to judge the data itself or one of its characteristics, and then choose the corresponding comparison attribute. |
Parameter Range |
Values/Range:
|