WEBVTT 00:02.070 --> 00:09.880 In this video we will see if condition so the condition is used to shift the control of the program 00:10.240 --> 00:24.280 based on some condition like can see equal to 50 be equal to 16. 00:24.280 --> 00:26.970 Here we are writing a fiction. 00:27.250 --> 00:31.110 If it is less than 00:36.990 --> 00:40.770 it is less than me 00:48.290 --> 00:48.650 and 00:51.930 --> 00:56.180 B is greater than it 01:02.970 --> 01:12.150 obesity and the if condition the condition is then the statements within the if block will get executed 01:13.810 --> 01:16.870 as the conditions in the else block will get executed. 01:19.480 --> 01:20.470 So here we can write 01:23.980 --> 01:28.870 or equal to any other greater or equal 01:31.800 --> 01:33.610 say of this program. 01:40.850 --> 01:41.320 Condition 01:44.840 --> 01:49.530 on this program is less than B. 01:50.930 --> 01:53.520 So here we have equal to. 01:53.590 --> 01:58.150 It just is less than so. 01:58.310 --> 02:07.070 We can also include multiple if conditions using Elif like 02:11.800 --> 02:29.010 a paper will be very good to bring to the hand if a change is ready to 16 so it can be both become equal 02:29.920 --> 02:30.750 from this program 02:33.650 --> 02:48.850 as you can see now the condition in Elif is met and it is printing this statement within Elif. 02:48.850 --> 02:49.270 BLOCK 02:52.820 --> 03:01.710 We're going to also evaluate multiple conditions using and or auto printers like we can say 03:05.990 --> 03:09.950 it will be a sequel to Dean 03:12.750 --> 03:15.420 and say a less than B. 03:17.810 --> 03:22.230 A greater than C this condition is true. 03:22.430 --> 03:25.520 It is less been a but 03:29.170 --> 03:29.470 C 03:34.740 --> 03:46.650 variant can see we can use it and operator to evaluate more than one condition so while using an operator 03:48.410 --> 03:55.100 interpreter will make sure that both the conditions are true. 03:55.460 --> 04:06.650 So in this case it is 15 B 16 so this condition is true and this condition is 15 C is 14. 04:06.660 --> 04:12.830 So this condition is also true of both conditions are true the statement statements within the block 04:12.830 --> 04:13.730 will get executed. 04:17.410 --> 04:20.000 These programs will print the sustained 04:25.030 --> 04:26.950 like and operator. 04:27.040 --> 04:32.970 We also have bar operator. 04:33.620 --> 04:37.190 We can see or as a people's equal 04:39.860 --> 04:48.980 Dan or a equally blue team or a people we will 04:52.570 --> 04:52.810 any 04:56.980 --> 05:01.890 supporting or operator any one condition should be true 05:07.350 --> 05:15.860 so here we can see that it is 15 and this condition is met so that statement than the if a statement 05:16.040 --> 05:18.410 will get printed. 05:25.200 --> 05:44.770 Here if we change the value this is 16 so is neither then nor 15 nor 20 so it will not print anything. 05:44.950 --> 05:49.730 You can also write this a statement as in 05:54.660 --> 05:54.960 the 05:59.570 --> 06:08.600 and we can write some meaningful sentence here it is right there. 06:08.920 --> 06:09.990 Then. 06:10.240 --> 06:11.250 Your point 06:20.500 --> 06:26.880 here you can see different conditions. 06:26.880 --> 06:30.300 All we can use if statement in Beth.