1
00:00:00,190 --> 00:00:04,690
OK as you can see here now this checkbox is checked.

2
00:00:04,830 --> 00:00:05,630
OK.

3
00:00:05,700 --> 00:00:08,470
Now this line of code is executed.

4
00:00:08,700 --> 00:00:10,750
CSX Hellfires that said check it.

5
00:00:10,770 --> 00:00:11,190
True.

6
00:00:11,190 --> 00:00:14,920
So now the value of this power variable is greater than 70.

7
00:00:15,030 --> 00:00:19,340
So this true value is assigned to this Am I healthy valuable.

8
00:00:19,370 --> 00:00:19,870
OK.

9
00:00:20,040 --> 00:00:21,860
So hopefully that makes sense.

10
00:00:21,870 --> 00:00:27,710
Now let's actually again comment out these lines of code here because I want to actually show you another

11
00:00:27,720 --> 00:00:30,510
important point about boolean variables.

12
00:00:30,540 --> 00:00:35,490
So now let's actually again referred to the name of this C x.

13
00:00:35,510 --> 00:00:37,060
Healthy Yes.

14
00:00:37,170 --> 00:00:41,030
Object that said check it.

15
00:00:41,050 --> 00:00:47,550
So as you can see here we need to actually put in a boolean valuable inside Apprentice's of this said

16
00:00:47,550 --> 00:00:48,050
checked my feet.

17
00:00:48,060 --> 00:00:48,460
OK.

18
00:00:48,460 --> 00:00:49,400
True or false.

19
00:00:49,480 --> 00:00:50,050
OK.

20
00:00:50,170 --> 00:00:55,350
You can either putting the value too or we can actually put putting the value for us.

21
00:00:55,480 --> 00:01:00,730
OK so now we can also put in a boolean expression.

22
00:01:01,130 --> 00:01:01,700
OK.

23
00:01:01,810 --> 00:01:07,580
So let's actually put in a pair of round brackets here and in say the prentices.

24
00:01:07,620 --> 00:01:15,670
I can actually specify my boolean expression so I can just type in power is greater than for example

25
00:01:15,700 --> 00:01:16,740
80.

26
00:01:17,180 --> 00:01:17,920
OK.

27
00:01:18,470 --> 00:01:22,800
Questionmark true otherwise false.

28
00:01:24,020 --> 00:01:30,040
So as you can see here by actually putting a boolean expression inside Apprentice's of this said check

29
00:01:30,040 --> 00:01:30,410
the method.

30
00:01:30,410 --> 00:01:31,030
OK.

31
00:01:31,370 --> 00:01:35,780
So does the trick if it actually accepts a value of type Boolean.

32
00:01:36,140 --> 00:01:40,470
So we can either put in the value true or we can actually put in the value for us.

33
00:01:40,490 --> 00:01:43,680
But here we actually put in a boolean expression.

34
00:01:44,000 --> 00:01:47,350
So this expression is going to be evaluated.

35
00:01:47,630 --> 00:01:53,350
And the result of this expression is going to be assigned to these R C S X healthy.

36
00:01:53,360 --> 00:01:54,670
Yes object.

37
00:01:54,680 --> 00:01:55,180
OK.

38
00:01:55,310 --> 00:02:02,660
So if the value of this power integer valuable is greater than 80 the value true is going to be assigned

39
00:02:03,080 --> 00:02:04,690
to this object.

40
00:02:04,760 --> 00:02:13,160
But otherwise if the value of this power integer valuable is not greater than 80 the value for us is

41
00:02:13,160 --> 00:02:15,260
going to be assigned to this.

42
00:02:15,270 --> 00:02:17,270
C is as healthy as object.

43
00:02:17,270 --> 00:02:22,280
OK so now let's actually run our project and see what happens.

44
00:02:22,280 --> 00:02:28,430
So as you can see here now this checkbox is actually checked because the value of this power variable

45
00:02:28,430 --> 00:02:30,650
is greater than 80.

46
00:02:30,800 --> 00:02:36,360
OK the value of this power variable is 97 so 97 is greater than 80.

47
00:02:36,440 --> 00:02:43,300
So the value true is actually assigned to this object and this checkbox is actually checked.

48
00:02:43,550 --> 00:02:50,610
OK so now let's actually first with the name of that see X healthy no object that said check it again.

49
00:02:50,630 --> 00:03:01,260
I had actually putting another boolean expression for example power is greater than for example 80 questionmark

50
00:03:01,380 --> 00:03:05,230
true otherwise false.

51
00:03:05,930 --> 00:03:06,570
OK.

52
00:03:06,750 --> 00:03:12,370
So as you can see here I actually assigned the same boolean expression that I assigned to this C as

53
00:03:12,450 --> 00:03:16,200
a selfie Yes object to this C S S help in no object.

54
00:03:16,200 --> 00:03:16,960
OK.

55
00:03:17,460 --> 00:03:22,870
And if I run my project again as you can see here our application is actually running on this emulator.

56
00:03:23,040 --> 00:03:26,310
And both of these checkboxes are actually checked.

57
00:03:26,360 --> 00:03:27,110
OK.

58
00:03:27,420 --> 00:03:34,320
So here as you can see I specified first of all if the value of this power integer variable is greater

59
00:03:34,320 --> 00:03:40,060
than 80 then the value true is going to be assigned to this C edge X Hilfiger's object.

60
00:03:40,080 --> 00:03:43,270
Otherwise the value for us is going to be assigned to.

61
00:03:43,270 --> 00:03:45,640
C is X healthy object.

62
00:03:45,840 --> 00:03:51,100
And again I assigned that expression to this see X help be no object.

63
00:03:51,390 --> 00:03:57,950
So here I specified that if the value of this power variable is greater than 80 then the value of true

64
00:03:57,960 --> 00:04:01,470
is going to be assigned to the C H x helping object.

65
00:04:01,530 --> 00:04:04,590
Otherwise the value falls is going to be assigned to this.

66
00:04:04,620 --> 00:04:06,800
C is healthy or no object.

67
00:04:07,110 --> 00:04:13,410
But as you can see because the value of this power integer value is greater than 80 then both of these

68
00:04:13,410 --> 00:04:15,160
checkboxes are checked.

69
00:04:16,110 --> 00:04:24,390
So here we can just say if the value of this power variable is not greater than 80 if the value of this

70
00:04:24,390 --> 00:04:29,840
power variable is not greater than 80 then assign the value to this object.

71
00:04:29,850 --> 00:04:33,330
Otherwise assign the value false to this object.

72
00:04:33,330 --> 00:04:36,690
So now let's actually run our project again and see what happens.

73
00:04:36,690 --> 00:04:40,420
So as you can see here now this checkbox is actually checked.

74
00:04:40,650 --> 00:04:48,030
OK so so now as you can see only this checkbox is actually checked ok because the value of this power

75
00:04:48,030 --> 00:04:49,980
variable is greater than 80.

76
00:04:50,040 --> 00:04:53,060
The value is assigned to this object.

77
00:04:53,310 --> 00:05:00,420
And here as you can see I actually specify if the value of this power value but is less than 80 the

78
00:05:00,420 --> 00:05:04,890
value 2 is actually assigned to the C H x no object.

79
00:05:04,890 --> 00:05:08,870
Otherwise the value false is actually assigned to this.

80
00:05:08,950 --> 00:05:10,680
C S as helping object.

81
00:05:10,680 --> 00:05:13,770
So let's actually change the value of this variable.

82
00:05:13,770 --> 00:05:15,670
For example to number 50.

83
00:05:15,870 --> 00:05:18,960
And let's actually run our project and see what happens.

84
00:05:18,960 --> 00:05:25,550
So as you can see here this checkbox is actually checked ok because the value of this power rowdier

85
00:05:25,560 --> 00:05:26,980
bill is less than 80.

86
00:05:27,090 --> 00:05:30,130
As you can see we assign the number 30 to this variable.

87
00:05:30,180 --> 00:05:34,440
So then as you can see now this tick box is actually checked.

88
00:05:34,710 --> 00:05:35,310
OK.

89
00:05:35,730 --> 00:05:38,150
So hopefully that makes sense.

90
00:05:38,220 --> 00:05:43,520
And now let's actually our comment out these lines of code here.

91
00:05:44,490 --> 00:05:45,000
OK.

92
00:05:45,150 --> 00:05:50,310
Now let's actually again refer to the name of this Am I healthy boolean variable.

93
00:05:50,610 --> 00:05:58,970
And let's actually put in an assignment operator here and now I can just put in a pit around brackets.

94
00:05:59,250 --> 00:06:04,780
And here again just typing power is greater than for example 90.

95
00:06:05,310 --> 00:06:05,970
OK.

96
00:06:06,120 --> 00:06:12,750
So if the value of this power integer value is greater than 90 then this expression evaluates to true

97
00:06:13,050 --> 00:06:16,460
and that true value is going to be assigned to this and we help with value.

98
00:06:16,470 --> 00:06:23,430
But otherwise if the value of this power value bet is not greater than 90 then this expression evaluates

99
00:06:23,430 --> 00:06:28,610
to false and that value that false value is going to be assigned to this.

100
00:06:28,620 --> 00:06:29,760
Am I healthy variable.

101
00:06:29,780 --> 00:06:30,390
OK.

102
00:06:30,840 --> 00:06:35,510
So here I can just type in see X healthy yes.

103
00:06:35,610 --> 00:06:41,240
That said checked and here inside Apprentice's I can't just create a boolean expression.

104
00:06:41,280 --> 00:06:46,290
Am I healthy questionmark true otherwise false.

105
00:06:46,770 --> 00:06:47,300
OK.

106
00:06:47,430 --> 00:06:51,840
So as you can see here I am specifying that if the value of this.

107
00:06:51,840 --> 00:06:58,050
Am I healthy boolean variable is true then actually assign the value true to this object.

108
00:06:58,680 --> 00:07:05,130
And if the value of this and I help with variable is not true assign the value falls to this object.

109
00:07:05,190 --> 00:07:07,760
And here again I can just refer to the name of this.

110
00:07:07,800 --> 00:07:10,020
See is a selfie no object.

111
00:07:10,020 --> 00:07:19,350
But that said checked and then again I can just create another boolean variable not Am I healthy questionmark

112
00:07:19,860 --> 00:07:23,080
true otherwise false.

113
00:07:23,670 --> 00:07:24,350
OK.

114
00:07:24,540 --> 00:07:30,930
So as you can see here again I actually putting an boolean expression here and I actually referred to

115
00:07:30,930 --> 00:07:33,480
the name of this am I help people the invariable.

116
00:07:33,660 --> 00:07:41,700
And as you can see I actually put this exclamation mark here in order to negate the value of these boolean

117
00:07:41,700 --> 00:07:44,540
variable so that I can check this condition.

118
00:07:44,790 --> 00:07:48,880
If the value of these are my help is valuable is not true.

119
00:07:49,200 --> 00:07:55,690
Then assign the value true to this rally to this variable Otherwise if the value of these are my Henfrey

120
00:07:55,710 --> 00:08:01,440
valuable is true assign the value falls to this S.H. exhale no object.

121
00:08:01,470 --> 00:08:03,400
OK so let me explain again.

122
00:08:03,450 --> 00:08:08,130
If the value of this am I help be valuable is not true.

123
00:08:08,370 --> 00:08:12,540
Assign the value true to these see objects help healthy no object.

124
00:08:12,540 --> 00:08:17,280
Otherwise if the value of this help is valuable is true.

125
00:08:17,620 --> 00:08:22,110
Assign the value false to this see X Helfen no object.

126
00:08:22,120 --> 00:08:25,610
OK so now let's actually run our project and see what happens.

127
00:08:25,680 --> 00:08:26,150
OK.

128
00:08:26,250 --> 00:08:32,630
Now as you can see our application is actually running on this emulator and now this checkbox is actually

129
00:08:32,640 --> 00:08:33,070
checked.

130
00:08:33,120 --> 00:08:34,040
OK.

131
00:08:34,080 --> 00:08:39,960
So as you can see here the value of this power integer variable is not greater than 90.

132
00:08:40,170 --> 00:08:43,870
So this value is fretty so frailty is not greater than 90.

133
00:08:44,070 --> 00:08:49,960
So the value of this and help be valuable is false and this checkbox is now actually the check.

134
00:08:49,980 --> 00:08:50,520
OK.

135
00:08:50,610 --> 00:08:56,820
In this line of code I am actually specifying that if the value of this healthy variable is actually

136
00:08:56,820 --> 00:09:04,350
true and that means if the value of this power integer valuable is greater than 90 then assign the value

137
00:09:04,350 --> 00:09:07,040
true to the checkbox and check this checkbox.

138
00:09:07,140 --> 00:09:07,690
OK.

139
00:09:07,890 --> 00:09:13,920
Otherwise if this value if this the value of this and I help people the invaluable is not true then

140
00:09:13,950 --> 00:09:16,100
assign the value of dollars to this check box.

141
00:09:16,110 --> 00:09:20,470
So as you can see here this checkbox is actually checked off OK.

142
00:09:20,670 --> 00:09:27,990
And in this line of code here is an inline 86 as you can see in line 86 as you can see.

143
00:09:28,050 --> 00:09:31,470
Now I am specifying that if the value of this.

144
00:09:31,500 --> 00:09:34,430
Am I healthy valuable is not true.

145
00:09:34,500 --> 00:09:35,290
So it is false.

146
00:09:35,310 --> 00:09:38,400
Ok then assign the value true to this check box.

147
00:09:38,400 --> 00:09:45,090
So as you can see this checkbox is actually on otherwise assigned a value falls to the check box.

148
00:09:45,090 --> 00:09:45,740
OK.

149
00:09:45,990 --> 00:09:52,860
So as you can see if the value of this variable is actually true then it's going to actually assign

150
00:09:52,860 --> 00:09:54,410
the value falls to this value.

151
00:09:54,430 --> 00:10:01,380
But because the value of this healthy variable is not true the value of this I mean a healthy variable

152
00:10:01,380 --> 00:10:02,470
is now false.

153
00:10:02,520 --> 00:10:08,220
So it is going to actually assign the value to this object and then it's going to execute this line

154
00:10:08,220 --> 00:10:10,020
of code and then it's going on.

155
00:10:10,020 --> 00:10:11,300
Check this checkbox.

156
00:10:11,460 --> 00:10:12,260
OK.

157
00:10:12,330 --> 00:10:13,800
So hopefully that makes sense.

