1
00:00:01,680 --> 00:00:03,300
Hey, guys, what's up?

2
00:00:03,600 --> 00:00:08,040
So in this video, we will talk about conditional statements and instructions.

3
00:00:08,850 --> 00:00:15,120
So many time our work is dependent upon some certain conditions if a certain condition is true.

4
00:00:15,270 --> 00:00:17,880
I will do some work if that condition is followed.

5
00:00:17,970 --> 00:00:19,350
I will do some other work.

6
00:00:19,950 --> 00:00:20,190
OK.

7
00:00:20,580 --> 00:00:23,430
For example, let's say I have a variable.

8
00:00:24,810 --> 00:00:27,120
I will take input from the user.

9
00:00:27,600 --> 00:00:28,590
Now I will check.

10
00:00:29,040 --> 00:00:31,220
If A is a good then.

11
00:00:31,400 --> 00:00:33,390
Then I will print.

12
00:00:34,020 --> 00:00:34,740
Let's say hello.

13
00:00:37,160 --> 00:00:40,180
OK, so if Aziga dentin, I will, Brent Hailu.

14
00:00:41,050 --> 00:00:45,010
Otherwise, I will brind worried.

15
00:00:47,960 --> 00:00:53,030
OK, so if Assad didn't condition is true, I will do some work if that condition is false.

16
00:00:53,470 --> 00:00:54,850
I will do some other work.

17
00:00:56,350 --> 00:00:57,160
OK, so let's see.

18
00:01:04,360 --> 00:01:06,910
So let's name this file as if.

19
00:01:09,710 --> 00:01:10,520
If condition.

20
00:01:15,600 --> 00:01:16,410
Nazi BP.

21
00:01:38,250 --> 00:01:44,940
OK, so what do you want to do is I will take a variable, let's say you and I and I will take the volume

22
00:01:44,970 --> 00:01:46,380
input from the user.

23
00:01:47,130 --> 00:01:50,910
Now I will check if the value of A is good.

24
00:01:50,970 --> 00:01:52,080
Then let's have five.

25
00:01:52,890 --> 00:01:54,990
So what I want to do is I will.

26
00:01:56,520 --> 00:01:56,880
Hello.

27
00:01:59,430 --> 00:02:07,560
And similarly, if this condition is fores and that is if I is not good, then five ls.

28
00:02:07,970 --> 00:02:13,050
What we want to do is I want to brand, let's say word.

29
00:02:17,580 --> 00:02:18,280
OK, so.

30
00:02:20,260 --> 00:02:23,290
That's Senate using, okay, sorry.

31
00:02:26,410 --> 00:02:27,370
Name, space.

32
00:02:29,000 --> 00:02:29,420
Space.

33
00:02:29,480 --> 00:02:29,750
OK.

34
00:02:29,810 --> 00:02:31,010
So let's do it again.

35
00:02:33,080 --> 00:02:35,470
OK, so let's say the value of AI is ten.

36
00:02:36,850 --> 00:02:38,150
So Heliers getting Brender.

37
00:02:38,560 --> 00:02:38,800
OK.

38
00:02:39,410 --> 00:02:41,840
So if the value of Iestyn might put it.

39
00:02:41,900 --> 00:02:42,200
Hello.

40
00:02:43,760 --> 00:02:47,390
So as you can see here, this condition is true.

41
00:02:48,350 --> 00:02:54,660
Since this condition is true, I will go inside this records', inside this parenthesis, inside this

42
00:02:54,660 --> 00:02:56,300
Carlip Records and I will print.

43
00:02:56,390 --> 00:02:56,660
Hello.

44
00:02:57,390 --> 00:02:57,690
OK.

45
00:02:58,220 --> 00:03:01,580
So if this condition is true, I will go inside.

46
00:03:02,500 --> 00:03:05,180
I will not be executed because this condition is true.

47
00:03:05,960 --> 00:03:07,220
Let's take one more example.

48
00:03:11,750 --> 00:03:13,810
Suppose the value of AI is, too.

49
00:03:14,510 --> 00:03:16,910
So in this case, my output is wide.

50
00:03:20,010 --> 00:03:26,750
So what happened is the value of FI is to say, I will come here and this condition is false.

51
00:03:28,330 --> 00:03:28,920
Two is not good.

52
00:03:29,030 --> 00:03:29,600
Then five.

53
00:03:29,960 --> 00:03:31,970
So I will not go inside.

54
00:03:32,210 --> 00:03:32,420
OK.

55
00:03:32,480 --> 00:03:33,650
So I will not go inside.

56
00:03:33,770 --> 00:03:34,460
I will come here.

57
00:03:34,580 --> 00:03:35,000
It is.

58
00:03:35,750 --> 00:03:37,820
And I will go inside and will print.

59
00:03:37,850 --> 00:03:38,650
See outweighed.

60
00:03:39,190 --> 00:03:39,520
OK.

61
00:03:40,220 --> 00:03:41,240
So these records.

62
00:03:42,290 --> 00:03:43,130
I had important.

63
00:03:45,700 --> 00:03:46,990
Let's take one more example.

64
00:03:47,900 --> 00:03:49,590
OK, so what will happen if I remove it?

65
00:03:51,230 --> 00:03:52,160
So let's remove it.

66
00:03:53,270 --> 00:03:54,560
Now, let us run it again.

67
00:03:56,200 --> 00:04:02,010
Now, suppose the value of AI is seven and enter is getting rendered?

68
00:04:02,210 --> 00:04:03,880
No doubt, because the condition is true.

69
00:04:03,970 --> 00:04:05,050
I will go inside.

70
00:04:06,690 --> 00:04:13,980
Now, let's say the value of AI is to say nothing is getting Brender, which is obviously correct.

71
00:04:14,760 --> 00:04:18,760
So if the value of AI is to two is not good, then five, this condition is false.

72
00:04:18,900 --> 00:04:20,110
I will not go inside this loop.

73
00:04:20,190 --> 00:04:21,150
I will reach here.

74
00:04:21,360 --> 00:04:22,500
Sorry, it is not a loop.

75
00:04:22,860 --> 00:04:24,720
I will not go inside this if condition.

76
00:04:25,050 --> 00:04:28,230
I will reach here line number 12 and will execute.

77
00:04:30,190 --> 00:04:30,520
OK.

78
00:04:34,800 --> 00:04:38,520
You can also write multiple lines here, for example, see out.

79
00:04:44,320 --> 00:04:44,570
OK.

80
00:04:44,920 --> 00:04:51,130
Similarly, you can ride as and you can do anything.

81
00:04:52,240 --> 00:04:58,300
For example, if you want to change the value of AI, for example, let's say I equals a plus two.

82
00:04:58,810 --> 00:05:00,700
Basically, you're increasing the value if I way too.

83
00:05:02,320 --> 00:05:06,670
And you can print the new value if I hear, for example, see LDI.

84
00:05:09,760 --> 00:05:10,990
OK, so let us know it again.

85
00:05:13,600 --> 00:05:15,390
So let's say the value of fire is five.

86
00:05:17,060 --> 00:05:21,820
So outproduce coming out to be seven because this condition.

87
00:05:22,150 --> 00:05:22,870
Let me show you.

88
00:05:24,480 --> 00:05:26,160
So the value of AI is five.

89
00:05:26,310 --> 00:05:27,870
This condition is false.

90
00:05:28,200 --> 00:05:32,170
I will go inside as so I will increase the value of five by two certainly.

91
00:05:32,240 --> 00:05:36,900
Well if I is seven and I am bringing the value of a simple.

92
00:05:38,580 --> 00:05:40,560
Similarly, if the value of.

93
00:05:41,730 --> 00:05:42,450
I is.

94
00:05:42,660 --> 00:05:43,550
Let's say it.

95
00:05:44,940 --> 00:05:45,690
So these two.

96
00:05:47,100 --> 00:05:48,660
Strings are getting printed.

97
00:05:49,140 --> 00:05:49,370
OK.

98
00:05:51,730 --> 00:05:55,410
Now you can write multiple events condition, for example, let me show you.

99
00:06:05,260 --> 00:06:07,720
So if the value of AI is five.

100
00:06:10,560 --> 00:06:11,400
What I will do.

101
00:06:14,530 --> 00:06:16,260
I will print sea out.

102
00:06:19,100 --> 00:06:19,670
If.

103
00:06:27,540 --> 00:06:30,540
Similarly, if the I'm checking again, elusive.

104
00:06:33,660 --> 00:06:37,230
If I if I say good, then five.

105
00:06:39,670 --> 00:06:42,640
Then I will print out.

106
00:06:44,050 --> 00:06:45,310
In as if.

107
00:06:53,240 --> 00:06:58,450
And let's see else, if about Drugan nations are false.

108
00:06:58,580 --> 00:07:01,790
I will reach in, as I let's say I am branding.

109
00:07:01,890 --> 00:07:04,560
See you out in as.

110
00:07:07,900 --> 00:07:08,090
OK.

111
00:07:16,050 --> 00:07:22,050
OK, I suppose if the value of AI is six, so what will happen, first of all?

112
00:07:22,080 --> 00:07:22,860
I will reach here.

113
00:07:23,310 --> 00:07:24,480
This condition is false.

114
00:07:24,870 --> 00:07:26,250
Now I will check this condition.

115
00:07:26,670 --> 00:07:27,660
Six guerdon five.

116
00:07:27,780 --> 00:07:28,230
Yes.

117
00:07:28,740 --> 00:07:31,000
So output will be in Altuve.

118
00:07:31,840 --> 00:07:33,630
OK, so far I equals six.

119
00:07:33,720 --> 00:07:35,780
Moudud will be in as if.

120
00:07:36,450 --> 00:07:36,630
OK.

121
00:07:36,680 --> 00:07:38,850
So remember out of these T.

122
00:07:40,050 --> 00:07:42,290
Only one of them will run.

123
00:07:42,750 --> 00:07:42,930
OK?

124
00:07:43,020 --> 00:07:44,610
All of them will not be executed.

125
00:07:44,700 --> 00:07:47,940
Only one of all the three will execute.

126
00:07:49,180 --> 00:07:50,710
OK, so four equals six.

127
00:07:50,740 --> 00:07:52,590
My output should be an elusive.

128
00:07:53,200 --> 00:07:53,800
So let's see.

129
00:07:55,990 --> 00:07:59,980
Led to the value of a six mile output is an elusive.

130
00:08:01,170 --> 00:08:07,590
Similarly, let's say, if the value of AI is five, so if the value of five is five.

131
00:08:07,950 --> 00:08:09,480
This condition will be true.

132
00:08:09,810 --> 00:08:11,740
And I will execute this line.

133
00:08:11,910 --> 00:08:12,110
OK.

134
00:08:12,190 --> 00:08:14,490
So these conditions will not be executed.

135
00:08:14,610 --> 00:08:16,380
I will not even check those conditions.

136
00:08:17,320 --> 00:08:17,560
OK.

137
00:08:19,130 --> 00:08:22,710
So if they really if I was five, my output should be enough.

138
00:08:22,820 --> 00:08:24,020
Which is hundred percent correct.

139
00:08:24,410 --> 00:08:25,070
Similarly.

140
00:08:26,670 --> 00:08:32,640
Let's say the value of AI is to sow this condition is false.

141
00:08:33,240 --> 00:08:36,130
This condition is also false because too is not good.

142
00:08:36,150 --> 00:08:36,640
Then five.

143
00:08:36,960 --> 00:08:38,940
So I will reach here in as.

144
00:08:42,380 --> 00:08:46,640
So if the value of AI is to some output, is it as.

145
00:08:48,590 --> 00:08:49,970
OK, great.

146
00:08:50,840 --> 00:08:58,450
So now I guess there is no need there is not compulsion to write as you can also deluded also and there

147
00:08:58,450 --> 00:08:59,330
is no compulsion.

148
00:09:00,170 --> 00:09:04,190
Now, let us try to understand what is the difference between if an elusive.

149
00:09:06,380 --> 00:09:07,820
So what I want to say is.

150
00:09:10,080 --> 00:09:14,280
I can also write like this, if I equals, it equals five.

151
00:09:14,430 --> 00:09:19,350
And here instead of Alice, if I could have written if I had done five.

152
00:09:19,860 --> 00:09:21,240
So I want to check.

153
00:09:21,270 --> 00:09:22,120
What is the difference?

154
00:09:22,140 --> 00:09:28,060
I want to know what is the difference between if and Essive vs..

155
00:09:29,460 --> 00:09:32,700
What is the difference between if and if?

156
00:09:34,640 --> 00:09:35,810
I guess I want to check it.

157
00:09:37,910 --> 00:09:42,320
And I also want to know, can I please as if with if.

158
00:09:43,850 --> 00:09:44,090
OK.

159
00:09:53,830 --> 00:09:54,360
So.

160
00:09:55,970 --> 00:09:57,140
A fascinating if.

161
00:09:59,360 --> 00:10:00,500
Then some court here.

162
00:10:01,310 --> 00:10:11,750
Similarly, if I am writing elusive and checking the condition and then some coded verses, if some

163
00:10:11,750 --> 00:10:17,710
call again if condition and some code, OK.

164
00:10:18,320 --> 00:10:20,660
So I want to find the difference between these two.

165
00:10:22,930 --> 00:10:25,150
So is actually very clear.

166
00:10:28,260 --> 00:10:31,080
Here, either one of them will get executed.

167
00:10:31,590 --> 00:10:31,830
OK?

168
00:10:31,890 --> 00:10:35,750
Both will not get executed if this condition is true.

169
00:10:36,570 --> 00:10:39,780
If this condition is true, this condition will not be checked.

170
00:10:40,800 --> 00:10:41,090
OK.

171
00:10:42,360 --> 00:10:46,620
And here, if this condition is true, this condition will also be checked.

172
00:10:47,070 --> 00:10:48,360
OK, so I will check.

173
00:10:50,900 --> 00:10:53,280
OK, so this is the basic defense.

174
00:10:53,310 --> 00:10:54,330
Let me show you.

175
00:10:55,410 --> 00:10:55,830
So.

176
00:10:57,620 --> 00:10:58,790
Our aim is very simple.

177
00:10:59,390 --> 00:11:02,450
So if so, what I will do?

178
00:11:02,480 --> 00:11:08,610
I will take a variable, let's say, and I will take the value of a input from the user.

179
00:11:09,050 --> 00:11:10,550
And my aim is very simple.

180
00:11:10,850 --> 00:11:15,020
If the value of A is one G-Star value to zero.

181
00:11:16,150 --> 00:11:20,860
And if the value of a zero change the value, a two one.

182
00:11:21,220 --> 00:11:22,140
So this is my book.

183
00:11:23,130 --> 00:11:23,400
OK.

184
00:11:23,860 --> 00:11:28,120
If the value of it is one, make a zero.

185
00:11:28,510 --> 00:11:32,670
Similarly, if the value of a zero make a one.

186
00:11:33,040 --> 00:11:39,330
This is my task that I have to do now with the help of this example, the difference between and NSF

187
00:11:39,390 --> 00:11:39,830
vs..

188
00:11:40,000 --> 00:11:42,330
If if will be very clear.

189
00:11:44,760 --> 00:11:45,870
So let's be clear that.

190
00:11:49,430 --> 00:11:49,720
A.

191
00:11:58,200 --> 00:12:01,740
So if A equals equals one.

192
00:12:02,670 --> 00:12:07,670
So what I have to do with the earlier phase when I have to change the value is to zero.

193
00:12:07,740 --> 00:12:08,700
So equals zero.

194
00:12:09,870 --> 00:12:10,380
No doubt.

195
00:12:12,120 --> 00:12:12,620
Elusive.

196
00:12:19,110 --> 00:12:22,490
And if A equals equals zero.

197
00:12:22,610 --> 00:12:23,540
So if the value of.

198
00:12:26,440 --> 00:12:28,230
And goes it goes zero.

199
00:12:28,550 --> 00:12:33,200
So if the value of a zero, I have to make a equals one.

200
00:12:34,440 --> 00:12:34,630
OK.

201
00:12:34,700 --> 00:12:37,550
So this was the task that I have to perform.

202
00:12:37,940 --> 00:12:38,820
And this is the code.

203
00:12:39,620 --> 00:12:42,590
And finally, I am bringing the value of a.

204
00:12:45,870 --> 00:12:46,120
Okay.

205
00:12:49,660 --> 00:12:52,120
So if I give is one.

206
00:12:56,290 --> 00:13:03,850
So if equals when this condition will get executed, this condition will be true and it will become

207
00:13:03,850 --> 00:13:04,210
zero.

208
00:13:04,900 --> 00:13:05,200
OK.

209
00:13:05,920 --> 00:13:08,980
Since this condition is true, this condition will not be checked.

210
00:13:09,310 --> 00:13:12,400
And I will print zero perfectly fine.

211
00:13:12,760 --> 00:13:14,650
Similarly, if the value of a zero.

212
00:13:15,010 --> 00:13:18,040
So, first of all, I will check this condition, which is false.

213
00:13:18,340 --> 00:13:19,660
Now, this condition is false.

214
00:13:19,840 --> 00:13:21,610
That's why I will check this condition.

215
00:13:22,900 --> 00:13:25,270
OK, so I will check this condition equals zero.

216
00:13:25,350 --> 00:13:25,480
Yes.

217
00:13:25,530 --> 00:13:26,360
The condition is strong.

218
00:13:26,400 --> 00:13:27,220
It will become one.

219
00:13:27,870 --> 00:13:28,860
It will become one.

220
00:13:28,890 --> 00:13:31,230
And then I will bring a.

221
00:13:32,520 --> 00:13:35,790
OK, so this court is fine.

222
00:13:35,880 --> 00:13:36,420
Let's see.

223
00:13:38,460 --> 00:13:42,310
If the value of phase one are virtually zero, good.

224
00:13:45,100 --> 00:13:48,400
If the value of a zero output should be one.

225
00:13:49,740 --> 00:13:50,020
OK.

226
00:13:50,500 --> 00:13:51,670
So this is good.

227
00:13:52,720 --> 00:13:53,380
Now what?

228
00:13:53,530 --> 00:13:56,550
Now what I will do, I will remove this ls.

229
00:13:57,610 --> 00:13:59,020
So I have to conditions.

230
00:13:59,830 --> 00:14:00,160
If.

231
00:14:00,190 --> 00:14:00,730
And if.

232
00:14:01,940 --> 00:14:02,110
OK.

233
00:14:02,230 --> 00:14:05,500
So let's see whether my Arpatepe will be right or wrong.

234
00:14:05,770 --> 00:14:06,340
So let's see.

235
00:14:07,510 --> 00:14:12,520
If the value of phase one, my output should be zero, but it is showing when.

236
00:14:16,080 --> 00:14:18,870
But if the value of a zero day showing one.

237
00:14:20,270 --> 00:14:25,370
So here for the value of equals it all my output is right by four equals one.

238
00:14:25,880 --> 00:14:26,840
My output is wrong.

239
00:14:27,440 --> 00:14:27,890
How?

240
00:14:29,000 --> 00:14:29,780
Let me show you.

241
00:14:33,170 --> 00:14:39,350
So when you are giving a equals zero as input, what will happen?

242
00:14:39,500 --> 00:14:40,700
I will check this condition.

243
00:14:41,150 --> 00:14:42,770
This condition is false.

244
00:14:43,190 --> 00:14:44,330
I will not go inside.

245
00:14:44,750 --> 00:14:45,980
Now, I will check this condition.

246
00:14:46,370 --> 00:14:47,630
This condition is true.

247
00:14:47,960 --> 00:14:52,420
I will go inside equals one and bring the valerian.

248
00:14:52,730 --> 00:14:54,380
So one is getting printed.

249
00:14:54,920 --> 00:14:55,640
Correct answer.

250
00:14:56,510 --> 00:15:00,500
But when it was one, what will happen?

251
00:15:00,860 --> 00:15:03,890
This condition is through.

252
00:15:05,270 --> 00:15:09,440
Since this condition is true, the new value of phase zero.

253
00:15:09,500 --> 00:15:11,660
So A equals zero.

254
00:15:13,400 --> 00:15:14,570
And now what will happen?

255
00:15:15,410 --> 00:15:16,820
I will check this condition.

256
00:15:18,260 --> 00:15:19,150
Is equal zero.

257
00:15:19,220 --> 00:15:20,540
Yes, equals zero.

258
00:15:20,720 --> 00:15:23,300
So it will make a one again.

259
00:15:23,360 --> 00:15:26,890
So it will be again one and then you are printing it.

260
00:15:26,960 --> 00:15:28,190
So one will be printed.

261
00:15:29,480 --> 00:15:29,740
OK.

262
00:15:29,940 --> 00:15:31,280
So this is their defense.

263
00:15:32,710 --> 00:15:41,410
If you're riding, if and if so, this F is independent, this if is independent, both will check the

264
00:15:41,410 --> 00:15:41,980
condition.

265
00:15:42,430 --> 00:15:52,450
But if you are riding, if and else if so, if this condition is false, then only I will check this

266
00:15:52,450 --> 00:15:52,990
condition.

267
00:15:54,490 --> 00:15:54,810
OK.

268
00:15:55,270 --> 00:15:59,410
If this condition is false, then only I will check this condition.

269
00:16:00,460 --> 00:16:01,360
And in this case.

270
00:16:02,880 --> 00:16:05,010
Validus Condition is true or false.

271
00:16:05,280 --> 00:16:07,230
This condition will always be checked.

272
00:16:09,220 --> 00:16:12,330
OK, so there can be many combinations.

273
00:16:14,650 --> 00:16:20,770
You can make many combinations like if only if only if you can write.

274
00:16:22,320 --> 00:16:23,120
A friend is.

275
00:16:25,160 --> 00:16:25,450
OK.

276
00:16:26,410 --> 00:16:28,240
You can also write if.

277
00:16:29,940 --> 00:16:30,600
As if.

278
00:16:32,240 --> 00:16:32,920
And if.

279
00:16:34,650 --> 00:16:51,090
You can ride if it's if it's you can ride if then inside, if then else if then else.

280
00:16:52,660 --> 00:16:54,340
Then inside, as you can, right?

281
00:16:54,430 --> 00:16:55,990
If and so on.

282
00:16:56,350 --> 00:16:59,170
OK, so they had an infinite number of combinations possible.

283
00:16:59,830 --> 00:17:00,480
Now, let's see.

284
00:17:00,490 --> 00:17:05,410
The most interesting thing and most important thing was also.

285
00:17:10,710 --> 00:17:12,050
So I am removing it all.

286
00:17:13,440 --> 00:17:15,390
OK, guys, let's make commander doubt.

287
00:17:19,340 --> 00:17:23,720
My main purpose was to clear the difference between offensive and offensive.

288
00:17:24,520 --> 00:17:30,020
Okay, now the one more thing that I want to make sure I do noise.

289
00:17:31,100 --> 00:17:36,030
Suppose I have a variable in there, which equals one.

290
00:17:37,940 --> 00:17:38,960
And now if.

291
00:17:41,480 --> 00:17:42,230
Five.

292
00:17:44,250 --> 00:17:46,140
A five morde to.

293
00:17:48,950 --> 00:17:49,430
And.

294
00:17:50,690 --> 00:17:51,390
C++.

295
00:17:51,920 --> 00:17:56,950
So if this condition is true, what I want to do is I will print C out.

296
00:17:58,340 --> 00:18:00,770
And if and if block.

297
00:18:04,960 --> 00:18:06,250
And I will bring the value of.

298
00:18:06,480 --> 00:18:09,220
She yelled, led to a.

299
00:18:15,400 --> 00:18:20,230
And if this condition is foys, is what I want to do is.

300
00:18:25,370 --> 00:18:30,050
So what I want to do is I will print sea out.

301
00:18:34,250 --> 00:18:34,980
And as.

302
00:18:39,440 --> 00:18:42,770
And line, and similarly, I will print the value ofthe.

303
00:18:45,760 --> 00:18:45,940
OK.

304
00:18:46,470 --> 00:18:47,890
So virtually my output.

305
00:18:49,200 --> 00:18:50,850
So if the value of phase one.

306
00:18:51,480 --> 00:18:53,200
So not this condition is true.

307
00:18:53,250 --> 00:18:54,830
Five more two is OK.

308
00:18:55,180 --> 00:18:56,010
So let me show you.

309
00:18:59,190 --> 00:19:00,450
So equals one.

310
00:19:01,080 --> 00:19:01,350
OK.

311
00:19:01,860 --> 00:19:03,560
Now, this condition is true.

312
00:19:04,900 --> 00:19:05,360
Why, Drew?

313
00:19:05,460 --> 00:19:11,940
Because five more two is one and one means to any positive value is true.

314
00:19:12,360 --> 00:19:13,260
Zero is false.

315
00:19:13,430 --> 00:19:13,680
OK.

316
00:19:14,040 --> 00:19:15,330
Any positive values true.

317
00:19:15,360 --> 00:19:16,170
And zero is false.

318
00:19:16,260 --> 00:19:17,370
So this condition is true.

319
00:19:17,710 --> 00:19:19,530
But there is an operator.

320
00:19:19,980 --> 00:19:21,120
There's a logical end.

321
00:19:21,720 --> 00:19:26,700
So we will check this condition also E-Plus plus now E-Plus plus plus is Borst.

322
00:19:26,990 --> 00:19:31,030
OK, so first I will check E and then it will be incremental.

323
00:19:31,470 --> 00:19:33,030
So I will check if it is one.

324
00:19:33,330 --> 00:19:33,550
OK.

325
00:19:33,600 --> 00:19:35,040
So both this condition are true.

326
00:19:35,940 --> 00:19:36,870
This is also true.

327
00:19:36,930 --> 00:19:37,830
This is also true.

328
00:19:37,980 --> 00:19:39,780
This whole expression is true.

329
00:19:40,110 --> 00:19:42,690
I will go inside this loop inside this.

330
00:19:43,350 --> 00:19:43,860
Inside this.

331
00:19:43,860 --> 00:19:45,450
Because this is not loop sorry.

332
00:19:45,750 --> 00:19:48,860
Inside this Beckers and Wildwood will be in if.

333
00:19:49,320 --> 00:19:50,380
And what is the value of two.

334
00:19:50,430 --> 00:19:54,310
What does the value of a avil being reminded by events of the new value of phase two.

335
00:19:55,060 --> 00:19:56,370
So my output should be.

336
00:19:57,750 --> 00:20:00,810
And if and do, this should be my output.

337
00:20:01,900 --> 00:20:02,540
Let's see.

338
00:20:06,940 --> 00:20:08,440
OK, so output is enough.

339
00:20:08,590 --> 00:20:09,730
And to.

340
00:20:11,910 --> 00:20:13,890
Now, let's make some minor changes.

341
00:20:14,850 --> 00:20:15,750
So suppose.

342
00:20:17,570 --> 00:20:18,470
If it was.

343
00:20:22,680 --> 00:20:23,470
It is odd.

344
00:20:26,770 --> 00:20:28,120
So what does odysseys?

345
00:20:35,330 --> 00:20:36,080
So what will?

346
00:20:36,230 --> 00:20:37,220
So what will happen?

347
00:20:39,510 --> 00:20:45,240
So I am saying, Hmoud, but we'll be in it if and when this will be my output.

348
00:20:48,010 --> 00:20:48,220
Why?

349
00:20:49,180 --> 00:20:50,500
OK, so five more.

350
00:20:50,520 --> 00:20:53,920
Two is one, which is true, no doubt.

351
00:20:56,170 --> 00:20:58,420
So if this condition is through.

352
00:20:59,780 --> 00:21:03,470
If this condition is true, do I need to check this condition?

353
00:21:04,400 --> 00:21:06,500
No, there's no need to check this condition.

354
00:21:06,570 --> 00:21:06,800
Why?

355
00:21:07,310 --> 00:21:09,470
Because we are having or.

356
00:21:10,810 --> 00:21:11,950
OK, so.

357
00:21:13,320 --> 00:21:16,200
If any of this condition is true.

358
00:21:16,230 --> 00:21:21,340
So if this condition is true, there's no need to evaluate this condition.

359
00:21:21,810 --> 00:21:26,700
This condition will not be elevated because now it is going to be to only.

360
00:21:27,720 --> 00:21:31,510
OK, so a plus plus will not be ulcerated.

361
00:21:33,080 --> 00:21:38,070
So I will go inside this inside this records' and and if and a.

362
00:21:38,330 --> 00:21:39,050
Which is one.

363
00:21:39,330 --> 00:21:41,360
So enough and it will be my output.

364
00:21:43,270 --> 00:21:45,090
OK, so let me show you.

365
00:21:48,120 --> 00:21:51,450
So my output is and if and when.

366
00:21:52,780 --> 00:21:53,050
Okay.

367
00:21:54,900 --> 00:21:56,670
Now, let's do some changes again.

368
00:21:57,630 --> 00:21:59,940
So let's make it six.

369
00:22:03,500 --> 00:22:04,110
Now, see?

370
00:22:05,330 --> 00:22:07,130
So six more.

371
00:22:07,160 --> 00:22:08,660
Two is zero.

372
00:22:09,260 --> 00:22:09,960
Reminder zero.

373
00:22:10,020 --> 00:22:11,450
So this condition is false.

374
00:22:12,350 --> 00:22:12,650
OK.

375
00:22:12,920 --> 00:22:16,130
So since this condition is false, I will check this condition.

376
00:22:17,670 --> 00:22:17,930
OK.

377
00:22:18,310 --> 00:22:19,900
Because this condition is false.

378
00:22:21,100 --> 00:22:22,960
Then I will check this condition.

379
00:22:23,230 --> 00:22:27,970
So E-Plus plus Borst increment first A will be assigned.

380
00:22:28,180 --> 00:22:29,320
Which is one.

381
00:22:29,680 --> 00:22:30,850
So this condition is true.

382
00:22:31,330 --> 00:22:32,980
So this is false.

383
00:22:33,220 --> 00:22:34,280
This is true.

384
00:22:36,340 --> 00:22:42,860
Output is to some output will be an F and two output will be enough.

385
00:22:43,120 --> 00:22:44,480
And two wire.

386
00:22:44,770 --> 00:22:50,900
Because a plus plus statement is evaluated in the last example when it was five more.

387
00:22:51,050 --> 00:22:55,600
Two, this statement was not too elevated because there is no need to do.

388
00:22:55,640 --> 00:22:59,800
Look at that statement because my output is going to be true only.

389
00:23:00,360 --> 00:23:02,770
So in this case, my output will be in effect to.

390
00:23:04,870 --> 00:23:05,350
Let's see.

391
00:23:08,670 --> 00:23:10,110
So in f end, do.

392
00:23:12,670 --> 00:23:14,290
Now, one last thing.

393
00:23:15,250 --> 00:23:15,850
What if.

394
00:23:17,930 --> 00:23:18,530
It is.

395
00:23:18,710 --> 00:23:19,170
Let's see.

396
00:23:20,360 --> 00:23:20,720
And.

397
00:23:22,660 --> 00:23:23,390
So what do leave do?

398
00:23:23,590 --> 00:23:25,570
But if it is and.

399
00:23:26,910 --> 00:23:27,470
Let's see.

400
00:23:32,660 --> 00:23:37,700
So six more two equals zero is false.

401
00:23:39,220 --> 00:23:41,750
OK, so this condition is false.

402
00:23:42,400 --> 00:23:46,390
And we are having and so we will not to look at this condition.

403
00:23:47,140 --> 00:23:47,440
Why?

404
00:23:47,650 --> 00:23:48,880
Because there is no need.

405
00:23:49,390 --> 00:23:55,480
If this condition is true or this condition is false, my output is going to be false only because this

406
00:23:55,480 --> 00:23:55,990
is false.

407
00:23:56,260 --> 00:23:58,340
So my output is going to be false only.

408
00:23:58,870 --> 00:23:59,080
OK.

409
00:23:59,140 --> 00:24:01,720
It doesn't matter whether E-Plus Pleasance true or false.

410
00:24:01,750 --> 00:24:02,700
It doesn't matter.

411
00:24:03,760 --> 00:24:09,790
So this statement, the C++, will not be well written because my output is fixed, which is false.

412
00:24:10,240 --> 00:24:11,050
So I will come here.

413
00:24:12,420 --> 00:24:14,440
My out would really be in as.

414
00:24:14,770 --> 00:24:16,090
And what is the value of a.

415
00:24:17,030 --> 00:24:18,530
The value of phase one.

416
00:24:19,460 --> 00:24:22,490
OK, so Inês and venture boom output.

417
00:24:25,870 --> 00:24:27,230
And as and when.

418
00:24:28,360 --> 00:24:33,080
Now, with the help of these example, we have reached an important desert.

419
00:24:33,220 --> 00:24:36,730
And what is our desert evaluation

420
00:24:39,700 --> 00:24:43,180
of logical expression?

421
00:24:46,490 --> 00:24:47,180
Stops.

422
00:24:49,760 --> 00:24:50,690
As soon as.

423
00:24:53,700 --> 00:24:54,750
Final value.

424
00:24:57,160 --> 00:24:57,700
Is known.

425
00:24:59,550 --> 00:25:00,720
So what I want to say is.

426
00:25:02,400 --> 00:25:11,880
If first condition is false and I am having and and let's say X, so in this case, X will not to be

427
00:25:11,910 --> 00:25:17,430
evaluated, will not be evaluated.

428
00:25:17,510 --> 00:25:17,700
Why?

429
00:25:18,240 --> 00:25:20,400
Because my output is going to be false only.

430
00:25:21,330 --> 00:25:26,340
Similarly, if I am if I am having if through or.

431
00:25:26,830 --> 00:25:28,440
And let's say X condition.

432
00:25:28,890 --> 00:25:31,920
So here also X will not be evaluated.

433
00:25:32,830 --> 00:25:33,810
Why Y.

434
00:25:33,990 --> 00:25:36,960
Because my output is going to be true only.

435
00:25:37,430 --> 00:25:37,670
OK.

436
00:25:38,220 --> 00:25:42,390
So to explain this line, I have taken those examples.

437
00:25:42,690 --> 00:25:46,250
That evaluation of a logical expression stops.

438
00:25:46,920 --> 00:25:51,000
It will stop as soon as the final value is known.

439
00:25:51,390 --> 00:25:54,240
For example, in this case, if the first condition is false.

440
00:25:54,760 --> 00:25:56,520
There is no need to check this condition.

441
00:25:57,950 --> 00:26:01,880
Because my final value's going to be false only similarly if this is true.

442
00:26:02,130 --> 00:26:07,010
There is no need to check this condition because my output is going to be true because of this.

443
00:26:09,230 --> 00:26:11,020
OK, so this is very important.

444
00:26:14,210 --> 00:26:16,160
So I hope this thing is clear.

445
00:26:16,610 --> 00:26:20,930
When a police presence getting evaluated, when it is not getting well rated.

446
00:26:21,960 --> 00:26:22,200
OK.

447
00:26:23,330 --> 00:26:23,780
Thank you.
