Highmark interview question

What is the difference between a while loop and an if statement?