Test Procedure (repeat for all test values below):
For a 'true' block, place an 'Equals' block on the field with the numbers '100' and '100'.
For a 'false' block, place an 'Equals' block on the field with the numbers '100' and '1'.
- Place the first truth value on the field, into the criteria area of the 'IF' statement.
- Place the 'AND' or 'OR' block-under-test on the field attached to the right of the first truth value.
- If the 'NOT' operator is specified by the test, add this immediately into the right side of the logic operator block.
- Place the second truth value on the field, into the last block added.
- Run the sequence.
- The turtle should move either up or down. Make sure the direction of movement matches the expected direction.
Test Values:
<table border="1" cellspacing="0">
<tr><th>#</th><th>Left Truth Value</th><th>Right Truth Value</th><th>Expected Movement Direction</th></tr>
<tr><td colspan="4">[AND]</td></tr>
<tr><td>1.</td><td>False</td><td>NOT True</td><td>down</td></tr>
<tr><td>2.</td><td>True</td><td>False</td><td>down</td></tr>
<tr><td>3.</td><td>False</td><td>NOT false</td><td>down</td></tr>
<tr><td>4.</td><td>True</td><td>True</td><td>up</td></tr>
<tr><td colspan="4">[OR]</td></tr>
<tr><td>5.</td><td>False</td><td>NOT True</td><td>down</td></tr>
<tr><td>6.</td><td>True</td><td>False</td><td>up</td></tr>
<tr><td>7.</td><td>False</td><td>NOT false</td><td>up</td></tr>
<tr><td>8.</td><td>True</td><td>True</td><td>up</td></tr>
</table>