() xor (): Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
 
Line 1: Line 1:
{{Blocks
[[File:Block 5 26 2023-3 13 08 PM.png|thumb|300x300px]]
|block_img = <gallery>
The xor block is a boolean that outputs the xor logic gate. It outputs true of only one value is true, and outputs false if both are false or true. To get this block, one must add the "Operators Expansion" extension.
Block 5 26 2023-3 13 08 PM.png|Block
XorWorkarounds.png|Workarounds
</gallery>
|block_type = Boolean Block
|category = Operators Expansion
}}
The xor block is a boolean block that outputs the xor logic gate. It outputs true if only one value is true, and outputs false if both are false or true. To get this block, one must add the "Operators Expansion" extension.
==Workaround==
==Workaround==
This block can be worked around by checking if the booleans are not equal to each other, or by putting a xnor block in a not block.
This block can be worked around by checking if the booleans are not equal to each other, or by putting a xnor block in a not block.

Latest revision as of 03:57, 17 December 2023

() xor ()
...
[[File:|200px]]
Caption
Block Type Boolean Block
Category / Extension Operators Expansion
Status Who tf uses status

The xor block is a boolean block that outputs the xor logic gate. It outputs true if only one value is true, and outputs false if both are false or true. To get this block, one must add the "Operators Expansion" extension.

Workaround

This block can be worked around by checking if the booleans are not equal to each other, or by putting a xnor block in a not block.