.. _omni_graph_nodes_Compare_1:

.. _omni_graph_nodes_Compare:

.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================

:orphan:

.. meta::
    :title: Compare
    :keywords: lang-en omnigraph node math:condition threadsafe nodes compare


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

.. </description>


Installation
------------

To use this node enable :ref:`omni.graph.nodes<ext_omni_graph_nodes>` in the Extension Manager.


Inputs
------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "inputs:a", "``any``", "Input A", "None"
    "inputs:b", "``any``", "Input B", "None"
    "Operation (*inputs:operation*)", "``token``", "The comparison operation to perform (>,<,>=,<=,==,!=))", ">"
    "", "*allowedTokens*", ">,<,>=,<=,==,!=", ""


Outputs
-------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "Result (*outputs:result*)", "``['bool', 'bool[]']``", "The result of the comparison operation", "None"


Metadata
--------
.. csv-table::
    :header: "Name", "Value"
    :widths: 30,70

    "Unique ID", "omni.graph.nodes.Compare"
    "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"

