Let's actually create again or create a comment OK Fox or Fox and then let's actually create a boolean
valuable so boolean false or false assignment operator.
Now let's actually create a boolean expression here false or false.
OK and then let's actually create an if statement here.
If the value of this false or false variable is true.
OK if the value that is assigned to the is false or false variable is true then execute this line of
code inside these curly braces of these.
Of this IIF statement.
OK.
So if the value of this false or false variable is true then execute this line of code here checks false
or false.
Yes that said checked.
True.
OK.
Otherwise else if the value of this false or false variable is false.
OK so we need to put an exclamation mark here.
If the value of these false or false variable is false.
OK we put these exclamation marks here in order in order to negate the value of this variable.
OK.
So if the value of this variable is false so execute this line of code inside of these curly braces
X Files or false.
No that said checked.
True.
OK so now let's actually run our project and see the results.
So as you can see here the value of this false or false variable is actually false because there's no
checkbox is actually checked on.
OK.
So the value of this checkbox is actually true.
So here we actually created a variable called false or false.
And then we assigned this expression to our variable funds or false.
So the result of this expression is actually assigned to this variable.
And here we checked if the value of this false or false value bet is actually true then execute this
line of code here.
So our C-h x false or false.
Yes.
Which is actually related to this component to this checkbox that said check.
True if the value of these false or false variable is true then actually check this checkbox here.
Otherwise if the value of this false or false variable is actually false then execute this line of code
here.
C-h x false or false no.
Which is related to this checkbox that said checked too.
So as you can see here the value of this checkbox is actually true.
OK this checkbox is checked on.
OK.
So let's again actually comment out this if else statement here and here we can't just type in C-h x
false or false.
Yes.
That said check it.
And here I can just put in a pair of round brackets and then again just refer to the name of this variable
false or false.
OK question mark true Colan false.
OK.
And this means if the value of this false or false variable is actually true then assign the value true
to this C-h x false or false.
Yes.
Otherwise assign the value false to what is said checked method that is related to this object.
OK.
Again I can't just type in checks false or false.
No.
That said check it.
And here I can't just put in a pair of round brackets and inside Apprentice's I need to put in an exclamation
mark fonts or fonts.
OK question mark.
True otherwise false.
So here I am just saying that if the value of these false or false value is actually false then assign
the value true to this method which is actually related to this object.
Otherwise assign the value false to this said checked Mefford that is related to this.
See it's a false or false no object.
OK.
If the value of these are false or false value is actually true assign the value false to this object.
So it is actually on our project again and see the results again.
So as you can see here false or false as you can see the value of this false or false value is no actually
is false.
OK.
This checkbox this no check box is actually checked on.
This is the result of execution of this line of code here.
OK.
Because the value of this false or false value is actually false.
So it is actually assigning the value true to this check box here.
OK.
So hopefully that makes sense.
And let's actually go back go inside this content underline minute example.
And by the way if you have any questions regarding these concepts that they actually that I am actually
teaching you are make sure that you actually posted discussion in the course or you can actually Message
me directly and I'll do my best to answer your questions.
OK.
So let's actually close this linearly out horizontal.
Let's actually track and order linearly out horizontally into this linearly outwards.
So just click on this linearly or horizontally and then you can just put it inside this linearly out
vertical here.
Write a large text view into this linearly and horizontal.
So you can either put it here or you can actually.
So you can either put it inside this linearly out here inside the screen or you can actually put it
here.
OK.
Inside these are componentry as you can see here.
OK.
So let's actually double click on this text view here and then let's actually give our text to this
text view.
So just type in here.
True carrot operator.
True.
OK.
And let's actually track another checkbox into this linearly out horizontal.
Double click on this checkbox for the text just type in here yes.
And for the ID just type in here C-h X through it's true.
Yes.
OK.
Again let's actually write another checkbox into this linearly out.
Double click on it for the text just typing no for the ID just type in here.
See it checks through.
Chad it true.
No.
And let's actually click click on this linear layout and here check this checkbox of this center underline
horizontal that is related to the script gravity attribute.
OK.
So check this checkbox.
And as you can see these components are actually positioned at the center of this linearly.
OK.
So hopefully that makes sense.
OK.
Now let's actually go back inside this main activity that java file here.
And let's actually scroll to the top of the screen.
And here they actually create a comment.
OK.
True Chad.
Operator OK remember to hold the shift key and then press and number 6 on your keyboard in order to
actually create a card.
OPERATOR OK.
So true.
Operator.
True.
Let's actually create a checkbox object to see x.
True Carrott true.
Assignment operator check box find view by ID or that Id dot C-h X true charites true.
Yes and I forgot to put vote yes here at the end of my checkbox object name it's actually create another
checkbox object here.
Checkbooks see objects are two Carrott true.
No assignment operator checkbox find view by ID or dot ID dot.
See it checks to charity.
True no.
OK.
So hopefully that makes sense.
And let's actually scroll down the file here.
And then this actually creates another comment to that operator.
True.
OK everyone.
Now I can actually create a boolean variable and the name of this boolean variable is true CEdit true.
OK.
Assignment operator and then I would actually assign a boolean expression to this variable.
OK.
Now I can actually assign a boolean expression to this variable so I can just put in a pair of round
brackets and then I can just type in here to carry true.
OK and then I need to actually put in a semi-colon at the end of our statement.
OK so now let's actually create of an IF statement here if true.
It's true has the value true then execute this line of code inside of these curly braces OK.
See it checks to try it.
True yes.
That said check it.
True OK.