To Bool
Convert the numeric input to a boolean value. Scalar inputs will output a single boolean value, and array inputs will output an equivalently-sized array of booleans. Non-zero values convert to a boolean value of true, and zero values convert to a boolean value of false.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Value (inputs:value) |
|
The input value to convert to boolean. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Bool (outputs:converted) |
|
The converted boolean value or array of boolean values. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ToBool |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
To Bool |
Categories |
math:conversion |
Generated Class Name |
OgnToBoolDatabase |
Python Module |
omni.graph.nodes |