Created page with "{{#Invoke:ProtoFlux|GenerateUI |Name=0/1 |Category=Operators |Inputs= [ {"Name":"Boolean", "Type":"bool"} ] |Outputs= [ {"Name":"*", "Type":"Dummy"} ] |}} '''0/1''' Converts a 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: {| class="wikitable" ! Variant !! Node Type !! False Output !! True Output |- |Zero One (float) || <code>ZeroOneFloat</code>|| 0.0 || 1.0 |- |Ze..." |
|||
Line 34: | Line 34: | ||
|} | |} | ||
== Inputs == | == Inputs == | ||
=== Boolean ([[Types:Bool | bool]]) === | === Boolean ([[Types: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 03:26, 14 January 2024
0/1
Operators
0/1 Converts a 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
* (Pseudo-Generic)
The output, whose type is dependent in the specific variant spawned.