Back to Browse

Conditionals in MakeCode for micro:bit | Beginner Tutorial

79 views
Feb 10, 2026
11:35

Want to learn how if statements and conditional statements work in coding? In this beginner-friendly micro:bit MakeCode tutorial, you’ll learn how to use conditionals to make decisions in your programs. I’ll show you step-by-step how to use if, else, and logical comparisons in Microsoft MakeCode so your micro:bit can respond to button presses, sensor input, and different conditions. This lesson is perfect for students, teachers, STEM classrooms, and anyone learning block coding with the BBC micro:bit for the first time. By the end of this video, you’ll understand how conditional statements control program flow and how to build interactive micro:bit projects using MakeCode. If you’re following a beginner micro:bit coding series, this is a key concept before moving on to functions, debugging, wireless radio, and more advanced physical computing projects. Get your micro:bit here: https://store.engineeringwonder.show/products/micro-bit-v2-go-bundle Share your creations with me on social media: https://www.instagram.com/engineeringwondershow/ https://x.com/engineerwonder https://www.tiktok.com/@engineeringwo... Official website: https://engineeringwonder.show 00:27 Conditional Statement explanation 01:04 Heart Beat program update 04:33 Night Light Program

Download

1 formats

Video Formats

360pmp416.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Conditionals in MakeCode for micro:bit | Beginner Tutorial | NatokHD