Uploaded March 2023 | Updated November 2026, 3 hours ago
Conditional statements are used to direct the flow of a program. They will execute code if a condition is true or false. In this video we will learn how to use if statements, if else statements, and if else if statements in Arduino programs.
This is tutorial #11 of the Ultimate Guide to the Arduino, a complete video course on the Arduino microcontroller with 45 lessons that are designed to teach anyone how to master the Arduino at any skill level. Visit our YouTube channel page to watch the entire series!
Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
sunfounder.com/products/sunfounder-3-in-1-iot-smart-car-learning-ultimate-starter-kit?_pos=1&_sid=b9504073c&_ss=r&ref=5RPAW01H
Or get the kit from Amazon:
US Amazon: amzn.to/3W1Mahh
DE Amazon: amzn.to/3j0oETn
JP Amazon: amzn.to/3UYrHZG
UK Amazon: amzn.to/3uTJZAC
CA Amazon: amzn.to/3W2vExN
Get an Arduino Uno from SunFounder here:
sunfounder.com/products/arduino-unor3-control-board?_pos=8&_sid=f6566a38b&_ss=r&ref=5RPAW01H
Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
circuitbasics.com/how-to-use-conditional-statements-in-arduino-programming
And be sure to check out the Circuit Basics blog and social media for more articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects!
circuitbasics.com
Facebook: facebook.com/circuitbasic
Twitter: twitter.com/circuitbasics
Instagram: instagram.com/circuitbasics
Conditional statements are used to direct the flow of a program. They will execute code if a condition is true or false. In this video we will learn how to use if statements, if else statements, and if else if statements in Arduino programs.
This is tutorial #11 of the Ultimate Guide to the Arduino, a complete video course on the Arduino microcontroller with 45 lessons that are designed to teach anyone how to master the Arduino at any skill level. Visit our YouTube channel page to watch the entire series!
Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
sunfounder.com/products/sunfounder-3-in-1-iot-smart-car-learning-ultimate-starter-kit?_pos=1&_sid=b9504073c&_ss=r&ref=5RPAW01H
Or get the kit from Amazon:
US Amazon: amzn.to/3W1Mahh
DE Amazon: amzn.to/3j0oETn
JP Amazon: amzn.to/3UYrHZG
UK Amazon: amzn.to/3uTJZAC
CA Amazon: amzn.to/3W2vExN
Get an Arduino Uno from SunFounder here:
sunfounder.com/products/arduino-unor3-control-board?_pos=8&_sid=f6566a38b&_ss=r&ref=5RPAW01H
Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
circuitbasics.com/how-to-use-conditional-statements-in-arduino-programming
And be sure to check out the Circuit Basics blog and social media for more articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects!
circuitbasics.com
Facebook: facebook.com/circuitbasic
Twitter: twitter.com/circuitbasics
Instagram: instagram.com/circuitbasics










