Skip to content
Roversa
  • Classroom
    • Meet Roversa
    • Get Started with Your Robot
    • Lessons & Activities
    • Updates & Support
    Go to the Classroom home
  • Partner
  • Blog
  • About
    • About us
    • In the News
  • Store
Join the Community

Logic

Challenge Card 4, Logic. Logic statements are what give Roversa and the micro:bit its “intelligence”. Logic statements are often used with sensors. One example of a logic statement is the conditional statement (if/then). Shown: the if/then block, comparison blocks and the and, or and not blocks.

Challenge Card 4, back. This logic statement (if/then/else block) uses the light sensor on the micro:bit: forever, if light level is less than 30 then show icon and drive forward, else show icon and stop. Note: Comparison (greater than, less than and equal to) and Boolean (and, or, not) expressions are often used in conditional statements.

← Loops

Download Code ►

Roversa

Little robot, big dreams.

Join the mailing list

Classroom

  • Classroom home
  • Meet Roversa
  • Get Started with Your Robot
  • Lessons & Activities
  • Updates & Support

Company

  • About us
  • In the News
  • Partner with us
  • Blog
  • Store

Say hi

  • [email protected]
  • Join the Community
  • Get the newsletter
  • Instagram
  • YouTube
  • LinkedIn
  • GitHub

© 2026 Roversa Robotics LLC. Roversa™ is a trademark of Roversa Robotics LLC. Classroom materials are shared under CC BY-NC-SA 4.0.