ProtoFlux:Zero One

From Resonite Wiki
0/1
Boolean
*
Operators

The 0/1 node converts a bool value into a 0 or 1 value depending on whether the input is true or false.

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. All variants of this node and their outputs are as follows:

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]