 Today we're going to be working with if then statements and trying to overcome the issue of the case-sensitiveness of the user input. So I'm sure there's more than one way to do this, but this is the way that I'm coming up with. So if we check in the script that we've been running, this is what we did in our last tutorial, and we're asking the user to input their name, and then we're checking to see if that name equals Chris or Jen. But our issue is, what if I type Chris with a lowercase k or Jen with a lowercase j? It's not going to recognize it, oh and by the way, I really should have quotations around this. It's one of those things that's not necessary, as you saw, it worked in the last tutorial, but it's a good idea to have them there, especially in case you have some sort of special character space, it will help prevent mistakes later on. But what we're going to do here is, when we're checking the value, we're going to either make what we're checking against all uppercase or all lowercase. So in this case I'll say Chris, and here I'll say Jen. And so what we're going to do is, well let me show you again, we'll run our script here, and if I type in Chris with lowercase k in this case, because we just changed it, it says hey buddy, but if we run the same thing, and I type Chris with a capital K, it says I don't know you. It's going back into our script here, if you watched a few tutorials back, we learned that we can change the representation of the name without changing the value of it by doing this, comma, comma. And that should take the variable of name and re-display it, or in this case recheck it as lowercase. So what we're doing is, we're taking the variable that we're getting from the user, which is their name, and instead of just checking that variable, we're going to say check that variable as all lowercase, and what we're doing that is instead of dollar sign and the variable name in this case, name, we're going to say dollar sign squiggly braces, and inside that squiggly brace, we're going to say the variable and then comma, comma, which as we learned in a previous tutorial will represent that variable as all lowercase. So we should be able to save that, and now we can run our script again. In this case, if I type in Chris with a capital K, it says hey, buddy. If I type in lowercase K, it says hey, buddy. If I type it in as, oops, Chris, it says hey, buddy. If I type it again as that, so as long as it has the letters, it doesn't matter on the K same or, and mainly because, completely because we used a different representation of the same variable. We're just, we're checking it instead of against the variable. We're checking it as the variable as all lowercase, and so you'll want to do that for each check you do. So the same will be true if I type in Jen. If I run it again and type in Jen all lowercase, if I run it again, and I type in Jen all uppercase, if I run it again, and I type in J, E, and N like that, it does it lowercase. So kind of a short tutorial, but just taking some things that we've learned in the past and showing you how if you just take the stuff you know that you've already learned, you can overcome some issues you may be having. So that is one way of solving our case-sensitiveness issue in this case, because you never know what the end user is going to input. They might type their name all lowercase, they might capitalize it, and you want to make sure that whatever the user inputs, you're going to do your best to predict what they're going to do, because you never know what they're going to do, so you want to try to cover all cases. So that is a quick look at how to check with an if statement if a name or other type of user input equals something regardless of the case of the string that you're checking, the variable that you're checking. So I thank you for watching. I hope you enjoyed this quick little tutorial. If you like these basic tutorials on shell scripts, be sure to like this video so that I know what you guys enjoy the most. If you also enjoy my tutorials, I put out a few every week. Be sure to subscribe so you don't miss any. Check out my website, filmsbychrist.com. It's Chris the K. There should be a link in the description, and that's just one place where I have my videos organized some way. You can pull up random videos. You can also check out my playlist on my YouTube channel, because I try to group everything into playlists to make it easier for you guys to find stuff, although I have a lot of videos, so it still could be difficult. Be sure to come in, join, hang out with us over in the IRC channel. If you go to my website and click on the help button, that will bring you to a web interface where you can just hang out with us, me and other viewers. You can also just use whatever IRC clients you want. We're on FreeNode, Pound, Filmsbychrist. Once again, Chris with a K. And I just hope that you have a great day.