Module 5 of 8

Loops

3 lessons  ·  Conditional statements, for loops, while loops

1

Conditional statements

Topics covered

  • if, elseif, else statements (if-end)
  • Example showing two true conditions but only the first is executed
  • Switch/case statements
3

While loops

Topics covered

  • Structure and uses of while loops (while-end)
  • Input validation
  • break keyword
  • Infinite loops and while loops that fail to start
  • Using Ctrl+C to terminate a running script