Highmark Interview Question

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