Difference between revisions of "& (LogiX node)"
Jump to navigation
Jump to search
(Examples) |
m (→Bitwise Number Operations: textual representation caption) |
||
Line 22: | Line 22: | ||
=== Bitwise Number Operations === | === 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.]] | [[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> | <nowiki> | ||
100101 | 37 | 100101 | 37 |
Latest revision as of 19:41, 5 September 2022
& | ||
---|---|---|
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
Bitwise Number Operations
A textual representation of the above image:
100101 | 37 & 011111 | 23 ------------- 000101 | 5