() xor (): Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content deleted Content added
Created page with "thumb|300x300px 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."
 
No edit summary
Line 1: Line 1:
[[File:Block 5 26 2023-3 13 08 PM.png|thumb|300x300px]]
[[File:Block 5 26 2023-3 13 08 PM.png|thumb|300x300px]]
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.
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.
==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.
[[Category:Boolean Blocks]]
[[Category:Operators Blocks/Expansion]]

Revision as of 23:51, 17 November 2023

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.

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.