OmniGraph Node omni.graph.nodes.Compare

omni.graph.nodes.Compare Properties

Name

Value

Version

1

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Compare

__categories

math:condition

Generated Class Name

OgnCompareDatabase

Python Module

omni.graph.nodes

omni.graph.nodes.Compare Description

Outputs the truth value of a comparison operation. Tuples are compared in lexicographic order. If one input is an array and the other is a scaler, the scaler will be broadcast to the size of the array

omni.graph.nodes.Compare Inputs

Name

Type

Default

Required?

Descripton

inputs:a

any

None

Y

Input A

inputs:b

any

None

Y

Input B

inputs:operation

token

>

Y

The comparison operation to perform (>,<,>=,<=,==,!=))

allowedTokens

>,<,>=,<=,==,!=

__allowedTokens

{“gt”: “>”, “lt”: “<”, “ge”: “>=”, “le”: “<=”, “eq”: “==”, “ne”: “!=”}

uiName

Operation

__default

“>”

omni.graph.nodes.Compare Outputs

Name

Type

Default

Required?

Descripton

outputs:result

[‘bool’, ‘bool[]’]

None

Y

The result of the comparison operation

uiName

Result