Hello and welcome in bidlake chore.
I'm going to explain what the boolean data type is a bully datatype usually has two values which is
either true or false.
This is common when you are program in Ruby or any other languages.
You may want to compare values and usually you use operators different types of operators to compare
values.
And usually that will return either a true or false.
So let me illustrate how you can get a bullion value.
So I'm going to start by greeting.
Hey.
Couple of variables.
Well a quick variable cost X and give me the value of four I'll create a variable called Y and give
you the value of 6 so I can make some comparison to get bullion data type.
I can see x value of x equals 2.
Y.
That is definitely not the case because X is for why he thinks that will return a bullion value which
is false.
I try my expression.
I can see the variable y.
Is not equal to the variable.
Thanks.
And that should return him bullion value off.
True.
K seem to have some aero there.
So I've done that again and is returned true here.
The reason I had an error here if you look at it when you leave this base it gives a different result.
So I've said why is not equal to x so I'm say I am comparing the value variable the value of the variable
y and x and this return boolean value of true.
So let's do a couple more examples.
One see the variable y.
Is greater than or equal to the variable x.
And that she return for Sorry less than that is a less than sign.
Apologies for that.
That is less than saying he returned for's value.
So let me do a greater than science I do Y is greater than or equal to X..
I should get.
True right so that's how you play around with bullions boole is also referred to as a ball sometime.
So boolean value will give you one or the other.
They give you a true or false one to try.
One more example using a logic called operate.
So I am going to say the variable y.
It's less than 10.
Okay.
And when to use a logical operator to compare it with another value some consider variable y is less
than 10 and the variable X..
Is less than 2.
So I expect that to be true.
If he is returned a value of true.
So basically that's what bullion's are billions you can do if you want to compare values of different
data type or different types of objects or variables you can use boolean value and the data type that
it will return will be in boolean values to give you the two results.
I doubt it.
True or false.
So when you hear the term boolean just remember it is a data type that has only two values and that
true or false.
Many thanks for watching and bye for now.