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:

  • Less Than

  • Less Than or Equal To

  • Greater Than

  • Greater Than or Equal To

  • Equal To

  • Not Equal To

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:

  • For numeric types, enter the value directly. For example, to check whether a list length is greater than 5, set this value to 5;

  • For bool (Boolean) types, enter 0 or 1, representing false or true respectively. For example, to check whether the value is false, set this value to 0;

  • For point cloud data types, enter 3 or 6, representing a point cloud without normals or a point cloud with normals respectively;

  • For string types, enter the string content directly 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:

  • List Length

  • Current Value

  • UUID Identifier

  • Confidence

  • Polygon

  • Class Name

  • Angle

  • Minimum Area Rectangle

  • Minimum Bounding Box

  • Pose

  • Model Name

  • Point Cloud Index

  • id

  • Priority

  • Pick Point Name

  • Pick Point Original Pose

  • Status Code

  • Status Message

  • Status Type

  • Minimum Value

  • Maximum Value

  • Rotation Relationship

  • Center Point

  • Dimensions

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

  • Point Cloud Point Count

  • Point Cloud Data Type

  • Area

Output on Empty Input

Description

When the input is a list type and the list is empty while a sub-attribute is selected for comparison, this parameter specifies the boolean output result.

Parameter Range

Values/Range:

  • True

  • False

Default: False