Step 5 – Add Movement Blocks

We’ll now add the movement the robot will do depending on what its sensor reads.


Select

Drag a inside the If/Thenblock.

Change 200 to 250.

Drag a inside the If/Then block.

Drag a inside the Else block.

Change Right to Left.

Code Example:


Click to replay