Hey, guys, welcome back to the course.
So in the last class, we talked about automatic operator.
Now in this class, you talk about relational operators.
OK.
So we are having relational operator.
So relational operators are used to compared to numbers.
OK.
So if we wondered, so if we want to compare two numbers, we will use relational operators, for example,
is a grid.
Then our request to be is a grid.
Then B is a list.
10 articles to be is a list.
Then B.
And we are having two more operators.
So is a quiz to be so venu, right?
Equals B.
So the value of B is cooperating to a certain check, whether equals B?
We have two, right?
Double equals two.
And the last operator and the last relation operator that we are having is a nautical to be.
So basically negation of this.
OK.
So is in articles to be.
So in total we are having six relational operators.
So where this relation operator will return?
So in case of automatic operator, when we do integer plus integer.
So my output is integer.
But in this case, relational operators will return me a boolean value, which will be either true or
false.
Okay.
So relational operators will have done me a boolean value, which can be true or false.
And in total, I am having six relational operators.
OK.
So let's write code for it.
Let's name this fire.
Les.
Relationally.
Not CBB.
Hedging lord.
I stream.
Using namespace as G.D. Saiman column and domain.
And here is made it done statement.
OK, so I need two numbers and I g.
And let's take the value of I NJ in Burundi, use it.
OK, so Boole.
Boole is a cool.
So what I will check is I go to J.
And then I will print out.
As equal.
OK.
So what is happening here?
This is my condition, is I ecological g that this condition will be true or this condition will be
false?
OK.
So that.
So the value of this expression, will a day be true or the value of the expression can be false.
And that will be stored in is equal.
And then I am branding is equal.
OK.
So let's see.
OK, so suppose my value of AI is ten and the value of JS ten.
So one is getting branded, one means true and zero means false.
So yes, ten is it close to ten.
So yes, ten is equal.
Shouldn't it out for this one.
Led to the Valley of Fire is one and the Valley of J.s to.
So one is an article to some out protest zero.
OK, so I have written some court here.
So first time checking is equal as I was equal G then not equal in articles to J.
I agree.
Then J.
I agreed, then order articles to j i listin g i elastin articles to G.
And in this boolean variables I am storing the value.
I'm storing there isn't true or false.
And then I am printing is equal.
An article then is not equal.
Is less is less than articles two.
OK.
So let's run it.
So let's say the value of AI is tool and the value of JS for.
So extremely close to forward.
No, it's still not close to four.
Yes.
Is stronger than four.
Yes.
Is truly good.
They're not close to four.
Yes.
Is true.
In less than four.
No.
Is to a list.
An order.
Close to four.
No.
OK, so let's run it for.
Let's run it one more time.
So let's say the value of AI is five and the value of J.s also five.
So is Phifer close to five?
Yes, it's five.
Nathi close to five.
No.
Five.
Guerdon five.
No, it's five.
Guerdon ordered close to five.
Yes.
So is five less than five.
No.
Is five less than Orquesta five.
Yes.
OK.
So this is how our relational operators work.
So this is it for this video.
I will see you in the next one.
Thanks for watching.