mNo edit summary |
|||
Line 11: | Line 11: | ||
] | ] | ||
|}} | |}} | ||
'''0/1''' Converts a [[bool]] value into a 0 or 1 value, depending on whether the input is true or false. | '''0/1''' Converts a [[Type:bool]] value into a 0 or 1 value, depending on whether the input is true or false. | ||
This node has the following variants, with their respective outputs: | This node has the following variants, with their respective outputs: | ||
Line 34: | Line 34: | ||
|} | |} | ||
== Inputs == | == Inputs == | ||
=== Boolean ([[ | === Boolean ([[Type:Bool |bool]]) === | ||
The input bool to convert to the given output type | The input bool to convert to the given output type | ||
Revision as of 17:14, 14 January 2024
0/1
Operators
0/1 Converts a Type:bool value into a 0 or 1 value, depending on whether the input is true or false.
This node has the following variants, with their respective outputs:
Variant | Node Type | False Output | True Output |
---|---|---|---|
Zero One (float) | ZeroOneFloat |
0.0 | 1.0 |
Zero One (float2) | ZeroOneFloat2 |
[0.0;0.0] | [1.0;1.0] |
Zero One (float3) | ZeroOneFloat3 |
[0.0;0.0;0.0] | [1.0;1.0;1.0] |
Zero One (float4) | ZeroOneFloat4 |
[0.0;0.0;0.0;0.0] | [1.0;1.0;1.0;1.0] |
Zero One (int) | ZeroOneInt |
0 | 1 |
Zero One (int2) | ZeroOneInt2 |
[0;0] | [1;1] |
Zero One (int3) | ZeroOneInt3 |
[0;0;0] | [1;1;1] |
Zero One (int4) | ZeroOneInt4 |
[0;0;0;0] | [1;1;1;1] |
Inputs
Boolean (bool)
The input bool to convert to the given output type
Outputs
* (Variant)
The output, whose type is dependent in the specific variant spawned.