In this lesson, we're going to talk about Comparison Operators in Bash Scripting. This is a very simple lesson. This is more about learning how Bash handles any type of comparison. So in mathematics, we talk about something greater than something else, less than, equal to, not equal to. Those all exist in Bash scripting. The difference, however, is that strings are treated differently than numbers. So let's just go over them. I'm going to go ahead and create a file in nano called operators. While we're in here, we can now take a look at how strings are tested. Now we're not talking about testing yet. That's coming in a different lesson. But if we're in a position to compare two things, we need to know how to do that syntactically. In the world of strings, we actually use a lot of the same operators as we do in middle school math. For example, to say something is equal to, we would use two equal signs. The reason we use two is because a single equal sign is used as an assignment operator. So if I have a variable and I want to assign it a number, I would say something like a number, and then equals singular 10. If I was testing my variable against another number, I would use two equal signs. So I'm asking or saying if number equals 10. So that's the difference between a single and a double equal sign. In fact, that only happens in these types of cases. Everything else is pretty standard to what we've learned. So we have greater than, we have less than, we have greater than or equal to, we have less than or equal to, we also have not equal to which is an exclamation point followed by an equal sign. That is how strings are handled. Now there's two other operators for strings that we want to consider, and these are Boolean Conditional Operators. So if I have a variable and I wanna test the variable to see if it's populated by something, I would use dash lowercase n. This means is not null. If we wanna test to check to see if it's empty, we would say -z and that equals is the variable empty. Those are the conditional operators for strengths. If we're doing it with numbers, so if I'm comparing two numbers, I would use -eq for if they are equal. If I use -ne that's not equal. gt is greater than -lt is less than. Then if we want to use greater than or less than or equal to, we would merely do -ge which means greater than or equal to -le or less than or equal to. In our next lesson, we're going to talk about mathematical operators. See you then.