 So one of the things that we were looking at inside of that Loop inside of that high low game is something known as a conditional value and the conditional value works pretty much that same way is that We talked about how we have to constantly change the loop So we have to think well, what is my what do I really want to change? I don't want number to change in this case I want number to stay the same because It's the guess. It's well. It's the randomly generated number It's the thing that makes the game the game I don't want that to change all the time because that makes the game impossible but this guess this guess is my Conditional statement, it's how I operate now. What if I wanted to make this game continue? Let's think about that Let's say for example now They've got it correct. You are correct Do you want to play again? I don't know so all of a sudden we're Saying do we want the user to play again? Well That's kind of a scary thought if you think about it. So how do we tackle that? Well, one thing I'm going to do is outside of my loop. I'm going to create another String recall it play again, and I'm going to set it equal to Why now? We can do our compound conditional statements remember a compound conditional statement means that two things have to be true For it to be true in our case Not only does guess not equal number, but Play again Dot equals Why now remember We talked about how with a string we have to use dot equals It's because it's a little bit more complex than our numbers Our primitive data types. So a string we have to do dot equals for this Well again, do you want to play again? So now all of a sudden I can say well do you want to play again? I get my user's input so play again equals Let's see input dot next Next And the user is going to type in yes or no now for our sake We're going to assume that they are smart enough and they just put in a lowercase. Yes now you're saying why don't I? Why don't I just Why no, why don't I check for no notice how notice how I only check for yes well Do I really care if they don't say why in this case? You know do I really care? Not really now the last thing I have to do is as you can guess I have to Change my number because it was five. It was you know in our last game 29 I don't want it to be 29 again need to change it. So again. I have to come up here We'll just take you We'll put you down there Now all of a sudden mine. I Say you're correct. Do you want to play again? boom and I immediately go and try and play again, so we take this we boom compile her up run her up 50 to low 75 to high 62 to low 68 to high 65 to low 66 to low 67. You are correct. Do you want to play again? Lowercase y lowercase y equals lowercase y and all of a sudden I get to play again 50 to high this time 25 to high this time 15 to high Wow zero to of course zero is too low 10 10 Do you want to play again? Well, guess what? No, I do not and the game is over only because I'm using my sentinel values to control the loop