 Just like we happen to have sort of chained conditionals where we may have multiple types of criteria We also can work off of Compound conditionals and the entire idea here is now when I look at say that if statement I might want to have one thing be true and Something else to be true Only when both of those conditions are met will this statement be true or as you can see I can also say something like or And in this case, I only need one of those statements to be true some great examples of this would be something like let's say I'm at the vending machine. So here's my weird-looking vending machine with its buttons Little dispenser units fill that in a little bit and then the crazy. It's got it always like that soda And Here's where you put in the money Okay, well the entire idea if you think about that vending machine is I'm going to put in some amount of money $2 right and dollars So does normally a dollar 25 Okay, well what I need to do is I need to also know That the vending machine is in stock if it's not in stock. I'm not going to get a soda So in this case. Oh, well, I'd need to do two separate checks if The soda inventory in the vending machine is greater than zero in this case. It's 20 awesome L or and and is not just the fact that the vending machine is you know more than Zero that doesn't know that that doesn't give me my soda and Subtotal is greater than the cost of the soda again dollar 25 for this if that's the case I can go buy a soda and I can even do some more work off of this soda inventory minus Equals one and again what that will do is? reduce Inventory by One Okay, and so that entire process can just continue to repeat and so another person could come in and try and buy a soda And so on and so on again We could also reduce or change what Subtotal is after that point as well But again, that's the idea of an and statement two statements must be true must Be true Then we also have something like account creation Well, if we think about this for a second you had to sign up for typos or you have to sign up for almost anything these days What are they gonna do? They're gonna ask for you to type in your username or your email address and then when they ever ask you for a password They're almost always asking you to type it in twice Well, why is that? Well, again, it's a to make sure that you type it in correctly That way you don't freak out and do a forgot password request or something like that But if we were to create your user again, we would do some checks We want to make sure that a your username Was not blank you didn't just do a blank username and that the words you typed in for your password or you Not the words you shouldn't use words. That's a dictionary anyways The key the characters that you used for your password were the same for both times you typed it in and if not You know, we'll give you a little command on the website that says invalid or your passwords didn't match or something like that So again, it's just another example of two things needing to be true Then we think about something like the or command The or command basically states that one of these things has to be true They don't all have to be true, but one of them does so let's think about this in the idea of I wanted to get Whether or not you wanted to play again. You we built a computer game. Do you want to play again? We check whether or not you said yes or no. Well, if you can see I Do a few checks because the user If we think about asking a user to type something, they're not going to type exactly what we want They may type yes with a capital Y. They may just type a capital Y They may type yes with all our cases. They may even go. Yeah, cuz I Don't control the users But all we would then need to do is again just do a play again Equal equal Yeah Now with that in mind very important here. You have to make a command Separate each one of these has to be separate This is not going to work play again equals. Yes, or yes, or yes That does not work and even just to see this in action. So let's say again play Again equals Yes, or why if Play again play again equals yes or Yes, or Yes We'll say Let's begin Okay, now more to my point when I run this code It's gonna say let's begin. Oh, that means that I Magically, you know, it works, right? Well Technically no Let's say for example. They said no in this situation. They don't want to play again They've I don't know it's a casino and they've lost all their money. No, I don't need to lose any more money Let's keep playing right the issue is specifically that this This or blank if we once again think about this as Everything with each one of these oars needs to be its own conditional statement realistically what we're saying is if blank or blank Or sorry if blank or if blank or if blank When we do something like if Why Right that command is True no matter what it will always evaluate this as a true statement and so it does You know, it it will just never work in our case. We don't want to play again, but we've always said You know, this is a true statement So you have to go in you have to be explicit with your Or play again You have to be explicit with each one of your criteria your compound conditional statements Else And that's it freaking out because I Hit run too soon Goodbye So once again checked. No, I don't want to play again Well, this was not true and this was not true and this was not true So all of this gets evaluated out as false. We skip over it else. Goodbye And just to change that up now when we say yes or the why well only one of these Conditionals needed to be true. This was not true This was not true, but this was true So at least one of our commands whether it were true. We then go in to say print. Let's begin