Programming with MAX6675 library

I tried a simple if statement like pylon suggested and it worked like expected but when I tried the while statement it would not. I realize that right now the switch and while are a bit much for whats currently needed but I am trying to plan ahead.