ProtoFlux:Zero One: Difference between revisions

From Resonite Wiki
Line 38: Line 38:


== Outputs ==
== Outputs ==
=== * (Pseudo-Generic) ===
=== * (Variant) ===
The output, whose type is dependent in the specific variant spawned.  
The output, whose type is dependent in the specific variant spawned.  
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators]]

Revision as of 17:13, 14 January 2024

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.