ProtoFlux:AND: Difference between revisions

From Resonite Wiki
No edit summary
this node is both logical and AND. maybe add examples for bitwise AND? later.
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"A", "Type":"bool"},
{"Name":"A", "Type":"Dummy"},
{"Name":"B", "Type":"bool"}
{"Name":"B", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Name":"*", "Type":"bool"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}


And is a ProtoFlux node that is a two input only version of [[ProtoFlux:MultiAND|MultiAND]].
The '''And''' node functions as both a [https://en.wikipedia.org/wiki/Logical_conjunction logical AND] or [https://en.wikipedia.org/wiki/Bitwise_and#AND bitwise AND] depending on the type used.


== Inputs ==
== Inputs ==


=== A ([[Type:Bool|bool]]) ===
=== A (Pseudo-generic) ===
First input. Can either be a[[Type:bool|boolean]] type or numerical type.


Boolean input for the first value
=== B (Pseudo-generic) ===
 
Second input. Has the same type as <code>A</code>.
=== B ([[Type:Bool|bool]]) ===
 
Boolean input for the second value


== Outputs ==
== Outputs ==


=== * ([[Type:Bool|bool]]) ===
=== * (Pseudo-generic) ===


AND result of A ([[Type:Bool|bool]]) and B ([[Type:Bool|bool]]).
Logical AND of <code>A</code> and <code>B</code> if the node is a [[Type:bool|bool]] type, bitwise AND otherwise.


== Examples ==
== Examples ==

Revision as of 04:12, 7 June 2024

AND
A
*
B
Operators

The And node functions as both a logical AND or bitwise AND depending on the type used.

Inputs

A (Pseudo-generic)

First input. Can either be aboolean type or numerical type.

B (Pseudo-generic)

Second input. Has the same type as A.

Outputs

* (Pseudo-generic)

Logical AND of A and B if the node is a bool type, bitwise AND otherwise.

Examples