General Data Comparison V2
Description
This operator is used to perform a logical comparison between two input data of the same type. Users can set a judgment condition (such as equal to, greater than, less than, etc.), and the operator will output a boolean result based on this condition, thereby enabling logical control of the algorithm flow.
Overview
Compares the size or equality of two data items, supporting comparison of values, list lengths, object attributes, etc., outputting a boolean result.
Scenarios
-
Data Comparison: Compare whether the attribute values of two data are equal, for example, comparing the number of objects measured twice.
-
Flow Control: Create logical branches in the algorithm flow, for example, comparing the quantity of two input data; the one with more enters flow A, and the one with fewer enters flow B.
Inputs and Outputs
Inputs |
Data to be compared 1: The first input data; the data type is determined by the instantiated selection. Data to be compared 2: The second input data; the data type is the same as the first data. |
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 |
Comparison object type. This parameter identifies the current data type of the two instantiated inputs and determines the dynamically generated comparison-attribute parameter. |
Parameter Range |
Default: Float |
Judge Condition
Description |
Selects the logical judgment condition used to compare Data 1 and Data 2. |
Tuning Instructions |
Select the comparison relationship as needed. |
Parameter Range |
Values/Range:
Default: Equal To |
Comparison Attribute
Description |
This parameter is displayed dynamically based on the currently selected data type and determines which aspect of the two inputs is compared. You may compare the current value of the objects themselves, the length of a list, or a sub-attribute of an object. Make sure both inputs are being compared on the same comparable dimension; otherwise, even if their data types match, the result may not be meaningful. |
Parameter Range |
Values/Range:
|