And asks you to go back inside this content underline minute example.
And here let's actually dragging another linearly out horizontally into this linearly and vertical and
dragging a large takes you into this linearly and horizontal.
So as you can see here I made a mistake and I didn't put this takes you into the linearly or horizontal
which is this.
So I can just write this up this component and again just put it inside this linearly out horizontal
OK.
So as you can see here now this takes you inside.
These are linearly and horizontal.
So double click on this takes you here and for the text just type in here false carrots false.
OK.
And then let's actually write a check box beside this text view into the linearly or horizontal double
click on it.
And for the text just typing yes and for the ID just type in CLX false Traugott false.
Yes.
OK.
That's actually right.
And that takes you into this linearly horizontal double click on it for the text just typing no.
And for the ID just type in C X fonts chart it follows no.
OK.
So as you can see here the idea of this checkbox is situates false scatted false.
Yes.
And the idea of this checkbox is c it takes false Carrott false no.
OK.
So click on these linearly and horizontal and for the center underline horizontal here as you can see
check this checkbox as you can see this checkbox is related to this gravity attribute.
OK.
So let's actually go back and say this main activity that a fight here.
OK everyone.
Now let's actually scroll to the top of the file here.
And this actually creates a comment false carrots false.
OK.
So let's actually create a checkbox object C is x false Carrot's false yes.
Assignment operator.
So now I need to actually cast this object into a checkbox object find view by id r that ID that X Files
can it false.
Yes.
OK.
Again I need to create another checkbox object that checks false Carrott false no assignment operator.
And and here I need to actually cast this object into a checkbox object find view by id r that Id dot
see it checks false Chad it's false.
No.
OK so now let's actually scroll to the bottom of the file.
And now let's again actually create another comment.
False carrot false.
So now let's actually create a boolean variable and the name of our value but is false.
Chad it's false.
Assignment operator and I want to assign a boolean expression to this variable so I can just type in
volas credit Fourth's.
OK.
So again as you can see here are these two values are not against each other the value of the two sides
of this operator descanted operator are not against each other.
So this expression is going to actually result in a false value.
OK.
Because we have a false value here and a false value here.
So because we are using a carrot operator here this expression is going to actually result a false value
because the two because the values of the two sides of this operator are not against each other and
they are the same.
So it is going to actually result in a false value.
OK.
And that false value is going to be assigned to this variable.
OK.
So hopefully that makes sense.
And let's actually create an A-list statement here.
So if the value of this false Carrot's false variable is actually true then execute this line of code
here textfiles carrot false.
Yes that said check it.
True.
OK.
Otherwise LS If the value of this variable is actually false OK then executes this line of code here
inside of these curly braces C checks false Carrott false.
Note that said check it.
True.
So now let's actually run our project and see what happens.
So as you can see here our the value of these false Carrott false variable is actually false.
OK.
So as I said before are these two values are the same the values of the of the two sides of this operator
are actually the same.
So this expression is going to result in a false value and that false value is going to be assigned
to this valuable.
And here we actually created an if statement.
And here we said if the value of this false carrot false variable is true then execute this line of
code and else if the value of this false kind of false variable is actually false then execute a huge
design of code here.
So as you can see here this line of code is actually get executed and this text box is actually true.
OK the value of this checkbox is actually true.
See the checks for scatted false.
No.
OK.
So hopefully that makes sense.
And let's actually comment out this if else statement here because I want to show you another way.
In order to write these statements see X Files Carrot's false.
Yes.
That said check it and it's actually putting a pair of round brackets inside of these inside of these
practices.
I can't just refer to the name of this variable false Carrot's false questionmark true otherwise false.
OK.
And here I am saying if the if the value of this false data is false or valuable is actually true then
assign the value true to the set to take effect that is related to this object.
Otherwise if the value of this false Carrott false variable is actually false then assign the value
false to the said Chicot MF'er that is related to this object.
OK.
So here I can just type in CFX false charites false.
No that said checked and it's actually putting up around brackets.
And inside the Prentice's I can just type in not false Carrott false here.
And as you can see I am saying that if the value of this false Kerith false value is actually false
then assign the value true to this asset check if it is related to this.
See it takes up false Carrott false no object as you can see this checkbox here is related to this object.
So and here I can just put in a call in otherwise for this and here I am saying that if the value of
these false Carrot's false value is actually true then assign the value false to this set check if that
is related to this false Carrott false no object which is related to this checkbox.
OK.
So because this value is actually false it is actually assigning the value true to this check and if
it is related to this object.
OK so the value of this check box is actually true.
And this tick box is actually on.
OK.
So hopefully that makes sense and I think that's enough for this tutorial.
If you have any questions please post the discussion in the course and then I'll do my best to answer
your questions.
So thank you very much for watching and I'll see you in the next tutorial.