WEBVTT 00:03.430 --> 00:05.180 Welcome his lecture. 00:05.200 --> 00:07.750 I'm going to talk about the multiple case conditions. 00:08.110 --> 00:08.860 Let's get started. 00:11.170 --> 00:16.030 Now, let's say that you want to find the other cities of France as well, to do that, you don't have 00:16.030 --> 00:18.460 to add another case clause to this switch statement. 00:18.970 --> 00:22.100 You can do it by using the multiple case conditions. 00:22.600 --> 00:23.230 Let me show you. 00:25.090 --> 00:31.180 For example, let's say that you want to print France and this is Leon to do that, I'm going to add 00:31.180 --> 00:33.070 a comma like this next to Paris. 00:35.610 --> 00:38.220 Then I just need to type the new Stenning Leon. 00:39.510 --> 00:40.120 That's it. 00:40.170 --> 00:48.000 It's that simple now when our list is Paris or Leon, it will print France or bandstands Tokyo, it 00:48.000 --> 00:49.170 will print Japan. 00:49.920 --> 00:56.160 By the way, you're not only limited to only two conditions here, you can add more if you want, but 00:56.160 --> 00:59.340 don't abuse it and please keep it readable all the time. 01:01.320 --> 01:04.260 Anyway, let me run this for you in the morning, Ed. 01:04.620 --> 01:05.010 OK. 01:07.510 --> 01:11.230 All right, here is the same program, let me run it with Paris first. 01:14.360 --> 01:16.740 OK, it says Paris is located in France. 01:16.860 --> 01:17.220 Good. 01:18.060 --> 01:19.550 Now let's try it with Leon. 01:21.830 --> 01:24.680 As you can see now, it's Prince France again, cool. 01:25.820 --> 01:30.290 Can guess which boolean expression the switch statement uses behind the scenes. 01:32.160 --> 01:34.350 Please post the video and think about it. 01:40.470 --> 01:41.130 Let me show you. 01:46.210 --> 01:48.640 Let's add, Leon, to this if condition here. 01:49.610 --> 01:54.850 As you can see, the multiple conditions here equals to this if condition, right? 01:55.160 --> 01:57.380 It just uses a logical operator. 01:58.800 --> 02:02.100 OK, let's run it now, Gourami Netco Leon. 02:03.600 --> 02:09.840 When I run it with Leon, both statements, Prince, France, this is because the switch and the if 02:09.840 --> 02:11.880 statement here are exactly the same. 02:12.720 --> 02:14.670 All right, the sulphurous lecture. 02:17.380 --> 02:23.230 Well, congrats now you learned about all the basics of the switch statement, perfect, seeing the 02:23.230 --> 02:24.310 next step I.