OK as you can see here now this checkbox is checked.
OK.
Now this line of code is executed.
CSX Hellfires that said check it.
True.
So now the value of this power variable is greater than 70.
So this true value is assigned to this Am I healthy valuable.
OK.
So hopefully that makes sense.
Now let's actually again comment out these lines of code here because I want to actually show you another
important point about boolean variables.
So now let's actually again referred to the name of this C x.
Healthy Yes.
Object that said check it.
So as you can see here we need to actually put in a boolean valuable inside Apprentice's of this said
checked my feet.
OK.
True or false.
OK.
You can either putting the value too or we can actually put putting the value for us.
OK so now we can also put in a boolean expression.
OK.
So let's actually put in a pair of round brackets here and in say the prentices.
I can actually specify my boolean expression so I can just type in power is greater than for example
80.
OK.
Questionmark true otherwise false.
So as you can see here by actually putting a boolean expression inside Apprentice's of this said check
the method.
OK.
So does the trick if it actually accepts a value of type Boolean.
So we can either put in the value true or we can actually put in the value for us.
But here we actually put in a boolean expression.
So this expression is going to be evaluated.
And the result of this expression is going to be assigned to these R C S X healthy.
Yes object.
OK.
So if the value of this power integer valuable is greater than 80 the value true is going to be assigned
to this object.
But otherwise if the value of this power integer valuable is not greater than 80 the value for us is
going to be assigned to this.
C is as healthy as object.
OK so now let's actually run our project and see what happens.
So as you can see here now this checkbox is actually checked because the value of this power variable
is greater than 80.
OK the value of this power variable is 97 so 97 is greater than 80.
So the value true is actually assigned to this object and this checkbox is actually checked.
OK so now let's actually first with the name of that see X healthy no object that said check it again.
I had actually putting another boolean expression for example power is greater than for example 80 questionmark
true otherwise false.
OK.
So as you can see here I actually assigned the same boolean expression that I assigned to this C as
a selfie Yes object to this C S S help in no object.
OK.
And if I run my project again as you can see here our application is actually running on this emulator.
And both of these checkboxes are actually checked.
OK.
So here as you can see I specified first of all if the value of this power integer variable is greater
than 80 then the value true is going to be assigned to this C edge X Hilfiger's object.
Otherwise the value for us is going to be assigned to.
C is X healthy object.
And again I assigned that expression to this see X help be no object.
So here I specified that if the value of this power variable is greater than 80 then the value of true
is going to be assigned to the C H x helping object.
Otherwise the value falls is going to be assigned to this.
C is healthy or no object.
But as you can see because the value of this power integer value is greater than 80 then both of these
checkboxes are checked.
So here we can just say if the value of this power variable is not greater than 80 if the value of this
power variable is not greater than 80 then assign the value to this object.
Otherwise assign the value false to this object.
So now let's actually run our project again and see what happens.
So as you can see here now this checkbox is actually checked.
OK so so now as you can see only this checkbox is actually checked ok because the value of this power
variable is greater than 80.
The value is assigned to this object.
And here as you can see I actually specify if the value of this power value but is less than 80 the
value 2 is actually assigned to the C H x no object.
Otherwise the value false is actually assigned to this.
C S as helping object.
So let's actually change the value of this variable.
For example to number 50.
And let's actually run our project and see what happens.
So as you can see here this checkbox is actually checked ok because the value of this power rowdier
bill is less than 80.
As you can see we assign the number 30 to this variable.
So then as you can see now this tick box is actually checked.
OK.
So hopefully that makes sense.
And now let's actually our comment out these lines of code here.
OK.
Now let's actually again refer to the name of this Am I healthy boolean variable.
And let's actually put in an assignment operator here and now I can just put in a pit around brackets.
And here again just typing power is greater than for example 90.
OK.
So if the value of this power integer value is greater than 90 then this expression evaluates to true
and that true value is going to be assigned to this and we help with value.
But otherwise if the value of this power value bet is not greater than 90 then this expression evaluates
to false and that value that false value is going to be assigned to this.
Am I healthy variable.
OK.
So here I can just type in see X healthy yes.
That said checked and here inside Apprentice's I can't just create a boolean expression.
Am I healthy questionmark true otherwise false.
OK.
So as you can see here I am specifying that if the value of this.
Am I healthy boolean variable is true then actually assign the value true to this object.
And if the value of this and I help with variable is not true assign the value falls to this object.
And here again I can just refer to the name of this.
See is a selfie no object.
But that said checked and then again I can just create another boolean variable not Am I healthy questionmark
true otherwise false.
OK.
So as you can see here again I actually putting an boolean expression here and I actually referred to
the name of this am I help people the invariable.
And as you can see I actually put this exclamation mark here in order to negate the value of these boolean
variable so that I can check this condition.
If the value of these are my help is valuable is not true.
Then assign the value true to this rally to this variable Otherwise if the value of these are my Henfrey
valuable is true assign the value falls to this S.H. exhale no object.
OK so let me explain again.
If the value of this am I help be valuable is not true.
Assign the value true to these see objects help healthy no object.
Otherwise if the value of this help is valuable is true.
Assign the value false to this see X Helfen no object.
OK so now let's actually run our project and see what happens.
OK.
Now as you can see our application is actually running on this emulator and now this checkbox is actually
checked.
OK.
So as you can see here the value of this power integer variable is not greater than 90.
So this value is fretty so frailty is not greater than 90.
So the value of this and help be valuable is false and this checkbox is now actually the check.
OK.
In this line of code I am actually specifying that if the value of this healthy variable is actually
true and that means if the value of this power integer valuable is greater than 90 then assign the value
true to the checkbox and check this checkbox.
OK.
Otherwise if this value if this the value of this and I help people the invaluable is not true then
assign the value of dollars to this check box.
So as you can see here this checkbox is actually checked off OK.
And in this line of code here is an inline 86 as you can see in line 86 as you can see.
Now I am specifying that if the value of this.
Am I healthy valuable is not true.
So it is false.
Ok then assign the value true to this check box.
So as you can see this checkbox is actually on otherwise assigned a value falls to the check box.
OK.
So as you can see if the value of this variable is actually true then it's going to actually assign
the value falls to this value.
But because the value of this healthy variable is not true the value of this I mean a healthy variable
is now false.
So it is going to actually assign the value to this object and then it's going to execute this line
of code and then it's going on.
Check this checkbox.
OK.
So hopefully that makes sense.