Frage im Vorstellungsgespräch bei Highmark

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