Lesson 2 · Creative Coding
Do one thing when true, another when false.
if/else lets your program choose between two paths. If the condition is true it runs the first path; otherwise it runs the else path.
2 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.