top of page

Programming with Conditionals

Programming with conditionals can be accomplished by using an if then block within a project.

This activity will introduce students to programming with an if then block as well as using sensing and operator blocks to have the robot check if the Brain Up button is pressed. If it is pressed, the Clawbot's arm will raise. This first introduction will lay the ground work for adding robot reactions to other buttons on the brain.

For more information about the if then, brain button pressed, wait until or the not blocks, visit the help information within VEXcode IQ Blocks. For more information about this built in help tool, click here.

The following is an outline of what your students will do in this activity:

- Watch the Using Loops and If-Then-Else Blocks tutorial videos.

- Use the Clawbot (Drivetrain) template to build the ArmUp project provided and predict what the project does.

- View a flowchart to help explain the flow of the blocks in the project.

- Refine their explanations of what the ArmUp project does.

- Edit their project by adding a wait until block.

- Stop and Discuss: Students will reflect on their predictions on what the project will have the Clawbot do compared to their actual observations.

bottom of page