ProtoFlux:Zero One

From Resonite Wiki
Revision as of 17:14, 14 January 2024 by Epsilion (talk | contribs)
0/1
Boolean
*
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

* (Variant)

The output, whose type is dependent in the specific variant spawned.