So as you can see here first of all I created a boolean variable.
True true true.
And then I assigned this expression to our variable.
So the result of this expression is going to be assigned to this variable OK.
And here I am saying that if the value of this true and true Kadar true variable actually is true then
execute this line of code here inside of this curly braces.
Otherwise else if the value of this truth had a true value of N is not true.
So it is false.
Ok true.
Khairat true.
Then execute this line of code here checks.
True true true.
No that said checked.
True.
OK so now let's actually run our project and actually let's see what happens.
So as you can see here the value of these two had a true expression is actually false.
OK.
The value of this value bet is false and onepoint are about expressions that actually uses it as an
operator you need to know that this expression only produces a true value if only the values of the
two sides of the expression are actually against each other.
OK true false or false.
True only in that case it's going to actually produce a true value.
OK.
In other cases such as these to try to True or false card is false.
It can actually produce a false value.
OK let me explain again.
Are these expressions that actually uses the credit OPERATOR OK so for example we have a true value
or.
And we have a false value here.
Or for example we have a false value here.
And we have a true value here only in that case it can actually produce a true value.
OK so that's very important and you need to know.
So here as you can see because both sides of this expression actually has the value true.
It's going to produce a false value.
OK.
So if the value of these true a true variable actually has the value to produce this line of code else
if the value of this to try to true is natural.
So it is worthless.
Then execute this line of code here.
OK.
So as soon as you can see here this line of code is actually get executed and that is the result as
you can see here.
So let's actually comment out this if else statement here because I want to show you another art another
way in order to write these statements so I can just type in here cx.
True.
True yes.
That said checked and then in say the parenthesis I can't just take control.
And then inside the prentices I need to actually put in a pair of and brackets and then inside Apprentice's.
I can just refer to the name of this variable to Chad it true.
OK.
Question mark.
True.
Otherwise Fahd's false.
OK.
And here again just typing in CSX.
True.
Carrott true.
No that said checked.
And here I need to put in a pair of round brackets and let's actually refer to the name of a variable.
So first let's actually put in an exclamation mark.
True true Carrott true.
OK.
Question mark.
True otherwise false.
So as you can see here now you're saying that if the value of these two capital variable is false then
assigned a value to to this method to this set check if it is related to this object.
Otherwise if the value of this had a true actually is true then assigned the value false to this is
said check if that is related to this object.
OK.
So hopefully that makes sense.
Let's actually run our project and see what happens.
So as you can see here we have the same result here.
OK.
The value of this true true true value is false.
Okay.
So hopefully that makes sense.
And this let's actually go back and say this content on I mean that example and then there's actually
a drag and either linear out horizontally into this linearly out vertical and then let's actually aggregate
a large takes you inside these are linearly out horizontal double click on it and then for the text
just type in here true it's false.
OK so remember in order to create this kind of OPERATOR You need to hold the shift key and then press
on number six on your keyboard.
OK.
So press on until key on your keyboard and then let's actually drag in a checkbox into this or linearly
out doubleclick on it for the text just typing here.
Yes.
And for the ID just type in here see X true Carrott true.
Yes.
OK and let's actually write another checkbox beside this tick box here double click on it for the text.
Just type in here no.
And for the ID just type in it x true.
Chad it follows.
No.
OK.
Now let's actually try again a checkbox here into this linear layout.
Horizontal.
So just click on this checkbox here and then put it beside this takes you and double click on this checkbox.
So the text of the search box just type in here yes.
And for the ID just type in C it takes two Carrott false.
Yes let's actually dragon another take walks here beside this checkbox.
Double click on it for the text just type in no.
And for the ID just type in situ X true Carrott false no.
OK.
And then click on this linearly and horizontal and then check the second box center on the other line
horizontal.
That is actually related to square the attributes.
So let's go back inside it inside this main activity that Josephite here and let's actually scroll to
the top of the screen here and then let's actually create a comment true carrot false.
Ok so now let's actually create a checkbox object Synaptics true.
Callid false.
Yes.
Assignment operator so analysis actually cast this object to a checkbox object.
Find you by id r that Id dot c it takes true carrot.
False Yes.
OK.
And then actually create another checkbox object theoretics true it false no ok assignment operator
and let's actually cast this object to a text box object find you by ID or that Id dot see if checks
are true that are false.
No.
OK.
So hopefully that makes sense.
Let's scroll down the file here.
And let's actually again create a comment to try to add fonts.
OK so now let's actually create a boolean variable and the name of this boolean value but is true Carrott
false assignment operator.
And then I want to actually create a boolean expression here true.
Chad it's false.
OK.
So as you can see here I created a boolean expression here.
Now the result of this expression is going to be assigned to this boolean value.
OK so now let's create an if statement here.
If the value of these two carat falls valuable is actually true then execute this line of code here
checks true carat false.
Yes that said check it.
True.
OK.
Otherwise else if the value of these two had falls valuable is not true.
So it is false.
OK.
Else if the value of these two Carrott false is not true then execute this line of quote here zero checks
to create false no data set.
Check it.
True.
OK so now let's actually run our project and see what happens.
OK.
As you can see here now the value of these two Carrott falls variable is actually true.
As I said before as you can see we are using a carrot operator here in this expression and in order
that this expression evaluates to true the value of the two sides of the expression must be against
each other.
OK.
So for example true is against the false and false is against true.
So the value of one side of the expression must be against the value of the other side of the expression.
So as you can see here we've got a true value here and we've got a false value here.
So these two values are all against each other.
So it's going to actually produce a true value.
OK.