Select Target If

Selects a target from the given inputs based on a boolean condition. If condition is a scalar, result will either be “ifTrue” or “ifFalse”. If it is an array, select between each input element-wise (if arrays are the same length).

Installation

To use this node enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Condition (inputs:condition)

['bool', 'bool[]']

The boolean condition used to select between “ifTrue” and “ifFalse”. If a scalar, result will either be “ifTrue” or “ifFalse”. If an array, select between each input element-wise (if arrays are the same length).

None

If False (inputs:ifFalse)

target

The targets if condition is “False”.

None

Metadata

allowMultiInputs = 1

If True (inputs:ifTrue)

target

The targets if condition is “True”.

None

Metadata

allowMultiInputs = 1

Outputs

Name

Type

Descripton

Default

Result (outputs:result)

target

The selected targets from ifTrue and ifFalse

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.SelectTargetIf

Version

1

Extension

omni.graph.nodes

Icon

ogn/icons/omni.graph.nodes.SelectTargetIf.svg

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Select Target If

Categories

flowControl

Generated Class Name

OgnSelectTargetIfDatabase

Python Module

omni.graph.nodes