Learn

Great job working through the control flow content in this lesson! In the previous exercises, we covered the following:

  • How control flow creates more dynamic code
  • Using if, else, and elseif statements to allow our code to make decisions
  • Using switch statements instead of repetitive ifelse statements
  • How looping allows us to execute code repetitions
  • for loop initialization and code execution
  • while, dowhile and dountil loops
  • Exiting loops early or skipping iterations with break and continue

Instructions

Feel free to use script.ps1 and the output terminal to try out more with control flow.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?