In this lesson, we're going to look at conditional statements in Bash scripting. Conditional statements are actually little questions that exist inside of scripts and in programs. A question like is this number bigger than this number? And if it is, do this stuff. That English language model of conditional statements in Bash scripting is very accurate. So let's go ahead and create a new file and explore a couple of these conditions. So I'm gonna type nano, and then I'm gonna call this file cond for conditions. In fact, I'll even add a one. As I suspect, there'll be another. Once we're in here, we have to put the obvious information. And don't forget the path to the interpreter. Now that we have this, I'm going to introduce another command for us to use inside of shell scripting. That is the read command. So the first thing we're going to do is we're going to say echo Please enter a number. Now we wanna put the command in that allows the script to accept input from the user. That command is read. If we follow read with the name of a variable, for example, num, then it will take what the user input and apply it to that variable. And just because it's new for us, we're gonna go ahead and run this and echo it out to the screen. So we'll save it. And we'll make it executable. Let's clear the screen and run the script. It allows me to enter a number and I'll enter in 12. Notice then it echos 12 to the standard output. With that information, we can go back into nano, and now apply an if statement. Remember, the conditional operators associated with numbers are the letters. This is the syntax of our if statement. If, and now we're going to use the square brackets that are located to the right of the P key. Inside here, I'm going to say if num is less than, and we'll say 50. Then we add a semicolon. Then echo num1 is less than 50. And we can put in a \n to move us down to the next line. Now we can save this file. And clear the screen. And now we're going to run the file. Now we can enter a number. I'll purposefully enter one less than 50 to check our specific if statement. And it says num1 is less than 50. Let's run it one more time but this time, let's put in a number higher than 50. And notice it just prints the number and exits because we do not have anything to handle the other side of that coin. To handle the condition if it's not met is really just as important as handling the condition if it is met. So let's go back into nano and what we're going to do is we're going to add the else statement. So if it turns out that num is actually greater than 50, then we can go down here to right above the fi and we can say else echo num1 is greater than 50. Now let's give that a try. And now we can put in a number greater than 50 again, and you'll see that it now gets handled. This is a basic if-else statement inside of Bash scripting. In our next lesson, we are going to add multiple conditions. See ya then.