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
, andelseif
statements to allow our code to make decisions - Using
switch
statements instead of repetitiveifelse
statements - How looping allows us to execute code repetitions
for
loop initialization and code executionwhile
,do
…while
anddo
…until
loops- Exiting loops early or skipping iterations with
break
andcontinue
Instructions
Feel free to use script.ps1 and the output terminal to try out more with control flow.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.