Logic Block

This block performs a logical operation on its inputs and sends out the true/false answer by a data wire. The inputs (which must also be "true" or "false") can be set using the radio buttons or supplied dynamically from data wires.
The Logic block uses only two possible values, "true" and "false," for both input and output. Often these values are written as the numbers "1" and "0" where any true statement is written as a 1 and any false statement is written as a 0.
This system is very simple for computers to understand because computer memory has an easy time recording "binary" values, values that come in only two states like the 1 and 0. Computers handle more complicated numbers and equations by building up from 1 and 0.
Note:
you can use the values 1 and 0 as input to this block but they must be
supplied by logic data wires.

A Logic block dropped into the work area will open with two input ports and three output ports. The input ports will have to be connected to other blocks using data wires (except when one of them is supplied by a constant value that you set with radio buttons).
Output from the logical operation will be delivered from the bottommost output plug; connect this plug using a data wire to another block’s data hub.
The two output plugs opposite the input plugs allow you to pass the input values on to other blocks if this is necessary. (See the Data Hub section below for more information.)
Configuring the Logic Block

Use the radio buttons to choose inputs A and B or let input data wires supply the input values dynamically.
The pull-down menu will let you choose from four operations you can perform on the inputs:
An "And" Operation
An "Or" Operation
An "Xor" Operation
A "Not" Operation