The use of logic is in testing various things to see if they are true
or false
. The first two blocks in the Logic drawer (shown in its entirety in the following screenshot) should be familiar by now—we've used true and false blocks several times in examples already.
The third, the not block, reverses logic—if something plugged in to the block is true
, the not block reports it as false
.
The equal framework works exactly the same and is interchangeable with the one in the Math drawer.
Using the and test block will return true
only if all the things plugged into it are true. In our example here, all are, and we get true
.
Finally, the or test block returns true if one or more of the items plugged into it are true.
Now, we take control of the Control drawer.