That's the only way that this expression is going to produce a true value.
OK.
Because you are using a carrot.
Operator but in the previous example as you can see the use of this carrot operator here and the two
sides of the expression the value of the two sides of the expression are are two OK are not against
each other.
OK.
And the values of the two sides of the expression are not against each other.
OK.
Those values are true.
So it's going to actually produce a false value but this time these two values are against each other.
So this expression is going to produce a true value.
So this line of code is actually get executed.
OK so now let's actually comment out this if statement here.
So I just wanted to type in C-h X true.
Carrott false.
Yes.
That said checked and let's actually put in a pair of round brackets.
And here again just refers to the name of our variable true and it's false.
And then a question mark.
True otherwise for.
And here I am saying that if the value of this true character for the variable is true then assign the
value 2 to this said check the method that is related to this object.
Otherwise if the value of this true had true Chad is false actually is false then assigned a value follows
To this I said checked Meffert that is related to this object.
OK.
So let's actually just create another line of code.
See it checks to true Carrott false.
No Dot said Check.
Let's actually put in a pair of round brackets and add in say the apprentices.
I can just type in an exclamation mark.
True it false.
OK question mark.
True otherwise false.
And here I am saying that if the value of these true false variables is is false then assigning the
value true to this said check the method that is related to this object.
Otherwise assign the value false to this set.
Check them if that is related to this object.
As you can see here.
OK so now let's actually run our project and see the results.
So as you can see here now.
Again it is showing us the same results.
The value of these two cannot falsifiable is true.
OK because these two values are against each other.
So it is now producing the true value.
And here as you can see we said if the value of the first variable is true then assigned a value true
to this check if it is related to dismount to this object.
Otherwise assign the value false to this method.
And here we are saying if the value of this true carried false valuable is false then assigned a value
true to this up to this object.
To discuss Meffert that is related to this object.
Otherwise assign the value false to dismiss it.
That is related to this object.
OK so hopefully that makes sense.
And let's actually go back inside this content.
Underlying mean that I made that example.
And then let's actually drag it another linearly out horizontal into this linearly and vertical here.
OK and let's actually rake in a large takes you into this linearly out horizontal and double DoubleClick
honied for the text.
Just typing fonts carry true.
OK so it's actually dragging a checkbox into this linearly or horizontal.
So as you can see here this is the checkbox.
Just put it here.
Double click on it for the text just typing yes and for the ID just type in CMD X of false charites
true.
OK.
Yes and that's actually correct.
Another checkbox here besides this checkbox.
Double click on it for the text.
Just type in no.
And for the ID just type in X fonts can it.
True no.
OK so if you've got an ID for this checkbox C-h x files scattered through yes and we've got an ID for
this checkbox.
C-h x false carrot through no.
OK let's click on this are linearly out horizontal and check this checkbox your center underline horizontal
that is related to describe the attributes of these linearly out horizontal.
So now let's actually go back inside this activity that outfight here and then let's actually scroll
to the top of the screen to the top of the file.
Here let's actually create a comment OK.
Follows carry it through that actually create a checkbox object see fonts Chad it true.
Yes.
Assignment operator now let's actually actually cast this object to a checkbox object.
And here is just typing find you by ID are dot ID dot dot see it checks false challenged true.
Yes.
OK.
Again let's actually create another checkbox see it checks false Chad it's true.
No assignment operator.
And here let's actually test this object to a checkbox object find view by ID or dot ID dot.
See it takes four false chart it true.
No.
OK.
And then we need to put a semicolon at the end of our statement.
So now let's actually scroll down the file here and here let's actually create a comment for us.
Try it through.
OK so now let's actually create a boolean valuable boolean and the name of our value but is false.
Carrott true.
Assignment operator and here I want to actually create a boolean expression font's chatted through OK
as you can see again these two values are against each other.
So it is going to actually produce a true value and that true value is going to be assigned to this
variable.
OK.
So let's actually create an if statement here.
If the value of these falls are Carrott true valuable is true then a sign that actually executed this
line of code here C-h X font's it through yes.
That said check it.
True.
OK.
Otherwise else if the value of this false carriage too variable is not true.
So it is false.
OK.
If the value of these false Carrott true valuable is not true then execute this line of code here see
X Files carried through no data said checked.
True.
OK.
So hopefully that makes sense.
And let's actually run our project and see what happens.
OK everyone.
Now as you can see here the value of this false a true variable is true.
OK.
As I said before when you are using this card operator in your boolean expressions are the only time
that this expression is going to actually produce a true value is that the value of one side of the
expression is against the value of the other side of the expression.
OK.
So we have false capital variable.
So this expression is going to produce a true value.
OK so now let's actually comment about this if if else statement here.
OK.
Just type in C-h x false.
Carry it through.
Yes.
That said check it and let's actually put in a pair of round brackets and here inside the apprentice's
just type in fonts carry it through questionmark through otherwise fots.
OK.
And here I am saying if the value of this false carry through variable is true which it is then assign
the value true to this said checked Meffert that is related to this false carrot true.
Yes.
Object.
OK.
So as you can see here this tick box is actually checked and it's actually again just type in here.
See it checks false.
True.
No that said check it and let's actually put in a pair of and brackets here and here.
Let's actually put in an exclamation mark here fonts carried through questionmark through otherwise
fonts.
And here I am saying that if the value of this false character variable is actually false then assign
the value true to this said check the method which is related to this object.
OK.
This component.
Otherwise if the value of this false catch a true value is actually true then assigned a value false
to this set check if it is related to this object.
OK.
So as you can see here these are checkboxes actually checked off OK.
And this check box is on.
So hopefully that makes sense.