 How's it going everybody? Welcome back to another C++ programming tutorial. In the last video we were looking at the L statements in conjunction with the if statement and testing for conditions and that sort of thing. We were looking at how many virgins we found and what Bin Laden said and that sort of thing. Let's continue with this example though. I'm going to save my code as a different copy. I'm going to call mine 12.nestedCPU. What the hell? 12 underscore nested.cpp. None of those things that I said were true beforehand. Okay, let's do, let's kind of fix up these conditions here. If the number of virgins is greater than or equal to, let's throw in an equal sign there. If the number of virgins is greater than or equal to what Bin Laden said then we can actually do a bit more tests. We can nest some statements. We can nest if statements inside one another. If number of virgins is equal to what Bin Laden said, that we can display, oh hey, Bin Laden was right on the line. Then we can do the else. See out, Bin Laden. Okay, if it's greater than or equal to, we're already looking at the case where it's equal to, so that means the only remaining case is if it's greater than. Bin Laden was thinking a little less, which means we have more virgins than what Bin Laden thought we would. We can remove the other C out because we're actually looking at both of them in this nested if statement. And in this case, where it says the else, where we have less, that means that Bin Laden overshot it. And we've already counted for the case where Bin Laden is right because we're testing that in the is equal to portion of the initial condition. If the number of virgins is greater than or equal to, if the number of virgins is equal to, if the number of virgins is greater than, else that means it's less than, which means Bin Laden overshot it. Bin Laden overshot it a little bit. Now we should have tested anyway for every single possible case. Let's run this code and see what happens. gbusplus12nested.cpp and ate it out. Hello world, how many virgins did you find? I found zero. Bin Laden overshot it a bit. He thought there were 72 and there were really zero. Now let's do it again. How many virgins did you find? I found 72. Bin Laden was right. Cool. Let's run this again. We had 100. Bin Laden was thinking a little less. He thought there would be 72, but there were in fact 100. So right now, because we've tested these conditions, we've been using multiple if statements and else statements inside others. We've kind of essentially accounted for everything in a fancy, fun way of thinking it. Okay. I think we're good. I mean, I think I'm good. Thanks for watching guys. I just wanted to prove that you can of course nest some of your if statements and that allows you to have more control depending on how you're setting up your conditions and that sort of thing. So thanks for watching everybody. Hope you enjoyed this. I'll see you in the next tutorial.