 What's going on guys, Root from NullShel.com here today and we are looking at some more Python code. This is a tutorial, in fact this is your 14th tutorial on Python and today we're going to be looking at the if statement. The if statement is part of the branch of conditional statements or things that will only run or occur if a certain condition is met. And I feel like these are incredible and the most, I said this about a lot of things that there are like so many important and crucial parts of programming, but the if statement is definitely up there on my list as well because it allows your programs to be able to make decisions, it allows your program to be able to decide the logic flow, which way it will go depending on the values and the variables that it's seeing, the things that are being inputted by the user. If you had a static program, it wouldn't be a program. The thing that makes a program so dynamic is being able to test and determine facts and things like that. So the if statement is definitely important, but enough rambling, I'll get idle started and we can start taking a look at what we're going to be doing today. Goodness gracious, I can't even speak, I'm so excited. So yeah, let's open up a new window, you can use control N, I'm going to get my shebang going on here, I'm going to save this as a filed up Python, overwrite that and just to get the ball rolling, I'll print out hello world, so we've got a little, we got some good output on the screen, and now let's make a couple of variables. I'm going to say, what do we want to do here, let's say virgins equals 72, all right, and now that we've got that going, we can create an if statement. Now the if statement is incredibly simple in the fact that it's so like realistic. It makes sense if something is something, do something. And that might be a little so abstract, but if virgins is equal to 72, and see we're using two, let's say two equal signs here because we're testing if it is equal to. We have the assignment operator, assignment operator, when it's a single equal sign, and now we have the conditional equals, conditional equals operator, which just means is it equal to, if is equal to. Now because virgins has been set to 72, this will return true, this is a correct condition. So we can start up a code block here, we're going to use those colons and indent our line so we can start new code on a different level of thinking, it's in a different scope and that sort of thing. I don't know if it's in a different scope for sure, but hey, I'm going to get some comments here just so we have a little bit more structure in my eyes, I don't know about you, that is all about style, but here, if virgins equal to 72, we can do something, let's say bin Laden was right, or something, there you go, there you go, that's the simplest way it's going to get. If virgins is equal to 72, which it is, we've set up here, bin Laden was right, and now we can say goodbye world, let's go, run it with F5 and we can check it out, hello world and bin Laden was right, goodbye world, it's a pretty interesting program right there. Let's do a thing, let's set virgins equal to 71, so virgins is no longer equal to 72, bin Laden is wrong, goodbye world, let's try it again, we get hello world and goodbye world. This is interesting, this is happening because virgins is not equal to 72, the variable virgins is not equal to 72 anymore, it's been set to 71, so it's not going to go through this code block here, it's going to completely skip it and disregard it and just go on with the rest of the program. Now we can avoid this in using different keywords and using a different sort of technique, but this is all that I wanted to comment in this video, in this tutorial here. Next we're going to be checking out those statements, we're going to be looking at other ways to test things, whether it's larger than, greater than, larger than, actually I'm sorry, less than, greater than, whether they're equal to and less than or greater than, that sort of thing, whether it's not, whether something and something else is true, so we can have some logical operators in here and it's going to be pretty cool, because the if statement is such a powerful statement, there's so much more in it and then soon we're going to get into looping a lot more things that come, but this was just a preliminary video to let you guys know how the syntax goes in Python, it's pretty simple, these parentheses here are not mandatory along with the semi-colons that I do, but it's just good practice if you're used to working in other languages, like if you're a C or a C++ guy or if you plan on using that sort of language at one point, you're going to want all of these parentheses, you're going to want all of these semi-colons, just because it makes, it makes it legitimate, it gives it a legitimate feel to it and that's kind of all I'm for. So okay, I think that's enough for this video, we've got a lot coming and I'll see you guys in the next tutorial.