Difference between revisions of "& (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
m (→‎Bitwise Number Operations: textual representation caption)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
  
 
== Examples == <!--T:4-->
 
== Examples == <!--T:4-->
 +
=== Boolean Comparisons ===
 +
[[File:Logix_AND_Example_bool.png|500px|An example of the & Logix node being used compare bools.]]
 +
 +
=== Bitwise Number Operations ===
 +
[[File:Logix_AND_Example_uint.png|500px|An example of the & Logix node being used to perform bitwise operations on an unsigned int.]]
 +
 +
A textual representation of the above image:
 +
 +
<nowiki>
 +
  100101 | 37
 +
& 011111 | 23
 +
-------------
 +
  000101 | 5</nowiki>
  
 
== Node Menu == <!--T:5-->
 
== Node Menu == <!--T:5-->

Latest revision as of 19:41, 5 September 2022

Other languages:
English • ‎日本語 • ‎한국어
&
'&' LogiX node
Inputs
  Bool A
  Bool B
Outputs
  Bool *

The & node performs the logical AND operation on inputs A and B.

Usage

When spawned from the node browser, this node accepts the int datatype by default, but it is more commonly used to work with Boolean values (True/False). The outputs will be True if, and only if, all inputs are True - otherwise it will output False. This node will accept some numeric datatypes, in which case it performs the operation in a bitwise manner.

Examples

Boolean Comparisons

An example of the & Logix node being used compare bools.

Bitwise Number Operations

An example of the & Logix node being used to perform bitwise operations on an unsigned int.

A textual representation of the above image:

  100101 | 37
& 011111 | 23
-------------
  000101 | 5

Node Menu

Operators
Back Bool Vectors Nullable Parsing - ! !=
% & ?: ?? ^ | |V|
|V|² + +/- +1 < << ==
> >> × ×dT ÷ ÷dT
° · 0 1 -1 1/x
1-x A^-1 Cross Determinant Distance Filter Invalid Get Type
IsInfinity IsNaN IsNull Mask Matrix Element -n NAND
NOR Normalized NotNull Pack Columns Pack rgba Pack Rows Pack xy
Pack xyz Pack xyzw Project Reflect ROL ROR To String
Transpose Unpack Columns Unpack Rows Unpack xy Unpack xyz Unpack xyzw
XNOR