1
00:00:00,870 --> 00:00:04,890
So as you can see here first of all I created a boolean variable.

2
00:00:04,910 --> 00:00:06,630
True true true.

3
00:00:06,870 --> 00:00:09,750
And then I assigned this expression to our variable.

4
00:00:09,870 --> 00:00:14,750
So the result of this expression is going to be assigned to this variable OK.

5
00:00:15,090 --> 00:00:23,730
And here I am saying that if the value of this true and true Kadar true variable actually is true then

6
00:00:23,730 --> 00:00:27,170
execute this line of code here inside of this curly braces.

7
00:00:27,180 --> 00:00:34,470
Otherwise else if the value of this truth had a true value of N is not true.

8
00:00:34,560 --> 00:00:35,430
So it is false.

9
00:00:35,440 --> 00:00:36,760
Ok true.

10
00:00:36,780 --> 00:00:38,640
Khairat true.

11
00:00:39,030 --> 00:00:42,120
Then execute this line of code here checks.

12
00:00:42,140 --> 00:00:43,850
True true true.

13
00:00:43,860 --> 00:00:46,600
No that said checked.

14
00:00:46,740 --> 00:00:47,910
True.

15
00:00:48,750 --> 00:00:54,770
OK so now let's actually run our project and actually let's see what happens.

16
00:00:54,780 --> 00:01:02,050
So as you can see here the value of these two had a true expression is actually false.

17
00:01:02,070 --> 00:01:02,410
OK.

18
00:01:02,430 --> 00:01:09,990
The value of this value bet is false and onepoint are about expressions that actually uses it as an

19
00:01:09,990 --> 00:01:18,690
operator you need to know that this expression only produces a true value if only the values of the

20
00:01:18,690 --> 00:01:22,750
two sides of the expression are actually against each other.

21
00:01:22,800 --> 00:01:25,010
OK true false or false.

22
00:01:25,020 --> 00:01:29,460
True only in that case it's going to actually produce a true value.

23
00:01:29,460 --> 00:01:30,090
OK.

24
00:01:30,180 --> 00:01:35,240
In other cases such as these to try to True or false card is false.

25
00:01:35,260 --> 00:01:38,150
It can actually produce a false value.

26
00:01:38,250 --> 00:01:39,830
OK let me explain again.

27
00:01:39,890 --> 00:01:45,930
Are these expressions that actually uses the credit OPERATOR OK so for example we have a true value

28
00:01:46,160 --> 00:01:46,740
or.

29
00:01:47,130 --> 00:01:49,110
And we have a false value here.

30
00:01:49,290 --> 00:01:51,730
Or for example we have a false value here.

31
00:01:52,050 --> 00:01:58,200
And we have a true value here only in that case it can actually produce a true value.

32
00:01:58,440 --> 00:02:02,140
OK so that's very important and you need to know.

33
00:02:02,310 --> 00:02:08,200
So here as you can see because both sides of this expression actually has the value true.

34
00:02:08,410 --> 00:02:10,680
It's going to produce a false value.

35
00:02:10,680 --> 00:02:11,330
OK.

36
00:02:11,730 --> 00:02:19,380
So if the value of these true a true variable actually has the value to produce this line of code else

37
00:02:19,470 --> 00:02:22,570
if the value of this to try to true is natural.

38
00:02:22,590 --> 00:02:23,720
So it is worthless.

39
00:02:23,850 --> 00:02:25,460
Then execute this line of code here.

40
00:02:25,500 --> 00:02:26,020
OK.

41
00:02:26,100 --> 00:02:31,560
So as soon as you can see here this line of code is actually get executed and that is the result as

42
00:02:31,560 --> 00:02:33,140
you can see here.

43
00:02:33,150 --> 00:02:41,040
So let's actually comment out this if else statement here because I want to show you another art another

44
00:02:41,070 --> 00:02:45,590
way in order to write these statements so I can just type in here cx.

45
00:02:45,860 --> 00:02:47,380
True.

46
00:02:48,080 --> 00:02:49,580
True yes.

47
00:02:49,670 --> 00:02:55,070
That said checked and then in say the parenthesis I can't just take control.

48
00:02:55,620 --> 00:03:02,470
And then inside the prentices I need to actually put in a pair of and brackets and then inside Apprentice's.

49
00:03:02,490 --> 00:03:07,170
I can just refer to the name of this variable to Chad it true.

50
00:03:07,560 --> 00:03:08,400
OK.

51
00:03:08,730 --> 00:03:09,730
Question mark.

52
00:03:09,780 --> 00:03:10,530
True.

53
00:03:11,210 --> 00:03:15,250
Otherwise Fahd's false.

54
00:03:15,730 --> 00:03:16,710
OK.

55
00:03:17,620 --> 00:03:20,310
And here again just typing in CSX.

56
00:03:20,380 --> 00:03:21,140
True.

57
00:03:21,360 --> 00:03:23,690
Carrott true.

58
00:03:23,950 --> 00:03:26,370
No that said checked.

59
00:03:27,640 --> 00:03:34,030
And here I need to put in a pair of round brackets and let's actually refer to the name of a variable.

60
00:03:34,210 --> 00:03:37,550
So first let's actually put in an exclamation mark.

61
00:03:37,810 --> 00:03:43,610
True true Carrott true.

62
00:03:43,970 --> 00:03:44,670
OK.

63
00:03:44,800 --> 00:03:45,700
Question mark.

64
00:03:45,720 --> 00:03:49,290
True otherwise false.

65
00:03:49,990 --> 00:03:58,900
So as you can see here now you're saying that if the value of these two capital variable is false then

66
00:03:58,930 --> 00:04:04,880
assigned a value to to this method to this set check if it is related to this object.

67
00:04:04,880 --> 00:04:13,840
Otherwise if the value of this had a true actually is true then assigned the value false to this is

68
00:04:13,890 --> 00:04:16,190
said check if that is related to this object.

69
00:04:16,210 --> 00:04:17,050
OK.

70
00:04:17,560 --> 00:04:19,400
So hopefully that makes sense.

71
00:04:19,540 --> 00:04:22,390
Let's actually run our project and see what happens.

72
00:04:22,390 --> 00:04:25,360
So as you can see here we have the same result here.

73
00:04:25,360 --> 00:04:26,050
OK.

74
00:04:26,140 --> 00:04:29,860
The value of this true true true value is false.

75
00:04:29,860 --> 00:04:30,750
Okay.

76
00:04:30,880 --> 00:04:32,590
So hopefully that makes sense.

77
00:04:32,770 --> 00:04:37,510
And this let's actually go back and say this content on I mean that example and then there's actually

78
00:04:37,550 --> 00:04:46,030
a drag and either linear out horizontally into this linearly out vertical and then let's actually aggregate

79
00:04:46,090 --> 00:04:53,290
a large takes you inside these are linearly out horizontal double click on it and then for the text

80
00:04:53,350 --> 00:04:58,650
just type in here true it's false.

81
00:04:59,140 --> 00:05:05,350
OK so remember in order to create this kind of OPERATOR You need to hold the shift key and then press

82
00:05:05,350 --> 00:05:07,620
on number six on your keyboard.

83
00:05:07,830 --> 00:05:08,650
OK.

84
00:05:08,830 --> 00:05:17,090
So press on until key on your keyboard and then let's actually drag in a checkbox into this or linearly

85
00:05:17,100 --> 00:05:21,380
out doubleclick on it for the text just typing here.

86
00:05:21,490 --> 00:05:23,110
Yes.

87
00:05:23,110 --> 00:05:31,320
And for the ID just type in here see X true Carrott true.

88
00:05:31,750 --> 00:05:32,550
Yes.

89
00:05:33,790 --> 00:05:41,300
OK and let's actually write another checkbox beside this tick box here double click on it for the text.

90
00:05:41,320 --> 00:05:42,740
Just type in here no.

91
00:05:43,000 --> 00:05:46,170
And for the ID just type in it x true.

92
00:05:46,510 --> 00:05:48,320
Chad it follows.

93
00:05:48,730 --> 00:05:49,420
No.

94
00:05:49,810 --> 00:05:50,330
OK.

95
00:05:50,400 --> 00:05:51,260
OK.

96
00:05:51,430 --> 00:05:55,540
Now let's actually try again a checkbox here into this linear layout.

97
00:05:55,540 --> 00:05:56,370
Horizontal.

98
00:05:56,530 --> 00:06:02,660
So just click on this checkbox here and then put it beside this takes you and double click on this checkbox.

99
00:06:02,680 --> 00:06:05,710
So the text of the search box just type in here yes.

100
00:06:05,830 --> 00:06:10,800
And for the ID just type in C it takes two Carrott false.

101
00:06:11,150 --> 00:06:16,560
Yes let's actually dragon another take walks here beside this checkbox.

102
00:06:16,870 --> 00:06:20,040
Double click on it for the text just type in no.

103
00:06:20,230 --> 00:06:27,920
And for the ID just type in situ X true Carrott false no.

104
00:06:28,410 --> 00:06:29,220
OK.

105
00:06:29,500 --> 00:06:35,500
And then click on this linearly and horizontal and then check the second box center on the other line

106
00:06:35,500 --> 00:06:36,430
horizontal.

107
00:06:36,610 --> 00:06:40,550
That is actually related to square the attributes.

108
00:06:40,630 --> 00:06:46,660
So let's go back inside it inside this main activity that Josephite here and let's actually scroll to

109
00:06:46,660 --> 00:06:55,630
the top of the screen here and then let's actually create a comment true carrot false.

110
00:06:55,640 --> 00:07:00,960
Ok so now let's actually create a checkbox object Synaptics true.

111
00:07:01,610 --> 00:07:04,030
Callid false.

112
00:07:04,030 --> 00:07:04,980
Yes.

113
00:07:05,050 --> 00:07:10,720
Assignment operator so analysis actually cast this object to a checkbox object.

114
00:07:10,870 --> 00:07:16,630
Find you by id r that Id dot c it takes true carrot.

115
00:07:16,880 --> 00:07:19,030
False Yes.

116
00:07:19,500 --> 00:07:20,060
OK.

117
00:07:20,440 --> 00:07:32,470
And then actually create another checkbox object theoretics true it false no ok assignment operator

118
00:07:32,890 --> 00:07:41,560
and let's actually cast this object to a text box object find you by ID or that Id dot see if checks

119
00:07:42,310 --> 00:07:47,080
are true that are false.

120
00:07:47,080 --> 00:07:47,690
No.

121
00:07:47,950 --> 00:07:48,860
OK.

122
00:07:49,270 --> 00:07:51,070
So hopefully that makes sense.

123
00:07:51,070 --> 00:07:53,600
Let's scroll down the file here.

124
00:07:53,950 --> 00:07:59,610
And let's actually again create a comment to try to add fonts.

125
00:08:00,030 --> 00:08:06,370
OK so now let's actually create a boolean variable and the name of this boolean value but is true Carrott

126
00:08:07,630 --> 00:08:10,210
false assignment operator.

127
00:08:10,300 --> 00:08:14,510
And then I want to actually create a boolean expression here true.

128
00:08:14,950 --> 00:08:16,960
Chad it's false.

129
00:08:17,320 --> 00:08:18,080
OK.

130
00:08:18,640 --> 00:08:22,110
So as you can see here I created a boolean expression here.

131
00:08:22,120 --> 00:08:26,440
Now the result of this expression is going to be assigned to this boolean value.

132
00:08:26,540 --> 00:08:30,310
OK so now let's create an if statement here.

133
00:08:30,340 --> 00:08:39,130
If the value of these two carat falls valuable is actually true then execute this line of code here

134
00:08:39,390 --> 00:08:42,830
checks true carat false.

135
00:08:43,300 --> 00:08:45,530
Yes that said check it.

136
00:08:45,580 --> 00:08:46,620
True.

137
00:08:47,110 --> 00:08:47,780
OK.

138
00:08:48,040 --> 00:08:54,630
Otherwise else if the value of these two had falls valuable is not true.

139
00:08:54,730 --> 00:08:55,590
So it is false.

140
00:08:55,600 --> 00:08:56,010
OK.

141
00:08:56,060 --> 00:09:05,590
Else if the value of these two Carrott false is not true then execute this line of quote here zero checks

142
00:09:05,620 --> 00:09:09,960
to create false no data set.

143
00:09:09,980 --> 00:09:11,590
Check it.

144
00:09:11,590 --> 00:09:12,890
True.

145
00:09:12,930 --> 00:09:17,580
OK so now let's actually run our project and see what happens.

146
00:09:17,590 --> 00:09:17,910
OK.

147
00:09:17,920 --> 00:09:24,400
As you can see here now the value of these two Carrott falls variable is actually true.

148
00:09:24,460 --> 00:09:30,490
As I said before as you can see we are using a carrot operator here in this expression and in order

149
00:09:30,490 --> 00:09:37,180
that this expression evaluates to true the value of the two sides of the expression must be against

150
00:09:37,240 --> 00:09:37,720
each other.

151
00:09:37,720 --> 00:09:38,130
OK.

152
00:09:38,200 --> 00:09:43,080
So for example true is against the false and false is against true.

153
00:09:43,090 --> 00:09:49,200
So the value of one side of the expression must be against the value of the other side of the expression.

154
00:09:49,210 --> 00:09:54,560
So as you can see here we've got a true value here and we've got a false value here.

155
00:09:54,580 --> 00:09:57,580
So these two values are all against each other.

156
00:09:57,700 --> 00:10:00,190
So it's going to actually produce a true value.

157
00:10:00,400 --> 00:10:00,920
OK.

