|
|
| What is the NXT-G Logic block for? |
| (23 ) |
95%
4%
|
The Logic block (located in the 'Data' section in the 'complete palette' tab on the left side of the screen) is used to make decisions based on two binary inputs. The configuration panel allows you to choose how the block makes the decision.

The program attached, logic.rbt, is a good example of how the logic button can be used to create a remote control. This program makes a car run whenever touch sensors 1 and 2 are simultaneously pressed.
|