() xnor ()

From PenguinMod Wiki (Official)
Jump to navigation Jump to search

The xnor block is a boolean block that outputs the xnor logic gate. It outputs true if both values are the same, however if one is true it outputs false. To get this block, one must add the "Operators Expansion" extension.

Workaround

This block can be worked around by checking if the booleans are equal to each other, or by checking if the sum of the booleans is even (true = 1 and false = 0 in operators so if both values are the same the result is 0 or 2, and otherwise 1).