.. _omni_graph_nodes_SelectIf_1:

.. _omni_graph_nodes_SelectIf:

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

:orphan:

.. meta::
    :title: Select If
    :keywords: lang-en omnigraph node flowControl threadsafe nodes select-if


Select If
=========

.. <description>

Selects an output from the given inputs based on a boolean condition. If the condition is an array, and the inputs are arrays of equal length, and values will be selected from ifTrue, ifFalse depending on the bool at the same index. If one input is an array and the other is a scaler of the same base type, the scaler will be extended to the length of the other input.

.. </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:condition", "``['bool', 'bool[]']``", "The selection variable", "None"
    "If False (*inputs:ifFalse*)", "``any``", "Value if condition is False", "None"
    "If True (*inputs:ifTrue*)", "``any``", "Value if condition is True", "None"


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

    "Result (*outputs:result*)", "``any``", "The selected value from ifTrue and ifFalse", "None"


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

    "Unique ID", "omni.graph.nodes.SelectIf"
    "Version", "1"
    "Extension", "omni.graph.nodes"
    "Icon", "ogn/icons/omni.graph.nodes.SelectIf.svg"
    "Has State?", "False"
    "Implementation Language", "C++"
    "Default Memory Type", "cpu"
    "Generated Code Exclusions", "None"
    "uiName", "Select If"
    "Categories", "flowControl"
    "Generated Class Name", "OgnSelectIfDatabase"
    "Python Module", "omni.graph.nodes"

