Added a warning note. |
Added an information note. |
||
Line 19: | Line 19: | ||
{{Note|The above ruleset breaks when using the [[ProtoFlux:MultiXOR|MultiXOR]] node, where the resulting output actually alternates when adding more input values. This may be due to how these nodes/code stacks it's operation when calculating the output.|warning}} | {{Note|The above ruleset breaks when using the [[ProtoFlux:MultiXOR|MultiXOR]] node, where the resulting output actually alternates when adding more input values. This may be due to how these nodes/code stacks it's operation when calculating the output.|warning}} | ||
{{Note|This node is similar to the [[ProtoFlux:Xor Elements|Xor Elements]] node.|information}} | |||
== Inputs == | == Inputs == |
Latest revision as of 18:18, 29 June 2024
XOR
Boolean
The XOR node takes in two value inputs (either a bool or a number value), and functions as both a logical xor or bitwise XOR depending on the type used.
- If both inputs are different, then the result will be true. - If both inputs are the same, then the result will be false.
Inputs
A (Pseudo-generic)
The first input value.
B (Pseudo-generic)
The second input value.
Outputs
* (Pseudo-generic)
Returns the result of a logical XOR of A
and B
if the node is a bool type, bitwise XOR otherwise.
Further Reading
Videos
See Also
- Wikipedia's definition of logical xor, bitwise xor, & xor gate.
- Microsoft's documentation on the xor operator.