Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

More on Conditional Loops

  • A do-while loop functions exactly as a while loop except that its test condition is evaluated each time after its statement group is executed.
  • A continue statement is used to skip the remaining code in a loop and re-evaluate the loop’s test condition.
  • A break statement can also be used in while or do-while loops to immediately halt the execution of the loop.
  • Conditional loops whose test condition never evaluates to FALSE or never executes a break statement will loop indefinitely. This condition is known as an infinite loop .
  • Some common pitfalls when using conditional loops are:
    • counter initialization occurring within the loop
    • not incrementing a loop counter within the loop
    • having a necessary break statement be unreachable
  • Additional Resources:

More on Conditional Loops

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

Computer Science: Introduction to PHP