1 00:00:01,540 --> 00:00:02,410 It does not proceed. 2 00:00:02,420 --> 00:00:07,450 And check out the continue to control statements in case of Cartland. 3 00:00:07,510 --> 00:00:12,770 And now let us proceed and check out Valdas the continued statement stands for. 4 00:00:13,180 --> 00:00:15,340 And I suppose there does remove it. 5 00:00:15,350 --> 00:00:16,970 There doesn't the word. 6 00:00:17,080 --> 00:00:22,850 So our record is written in such a way that it will simply print the values from 1 to 10 right. 7 00:00:22,990 --> 00:00:29,960 Now suppose I want to print the value 4 and then 6 I want to skip this 5 value. 8 00:00:30,220 --> 00:00:34,070 That is I don't want to print the value of 5 in the output console. 9 00:00:34,180 --> 00:00:42,040 So for that what we do is that here initially I would simply write a condition if I is equal to equal 10 00:00:42,070 --> 00:00:48,420 to 5 then inside the body I would simply write continue. 11 00:00:48,460 --> 00:00:48,960 Right. 12 00:00:49,120 --> 00:00:56,200 So when the value of pi becomes 5 then simply continue which means that skip all the code right after 13 00:00:56,200 --> 00:00:57,310 the if statement. 14 00:00:57,370 --> 00:01:04,150 That is simply skip this part and then simply continue with the loop in the normal way. 15 00:01:04,570 --> 00:01:06,530 So let us note in the chord. 16 00:01:06,550 --> 00:01:10,130 So here in the output we have four and then six. 17 00:01:10,240 --> 00:01:12,460 We have not printed five in the output. 18 00:01:12,480 --> 00:01:18,990 And so all this is simply because the print in statement then becomes 5 is not exactly dead. 19 00:01:19,090 --> 00:01:23,720 And now suppose you want to print all the order number so far that Vardi will do. 20 00:01:23,830 --> 00:01:31,940 You will simply use i.e. modulus to equal to equal to zero then simply continue. 21 00:01:31,940 --> 00:01:39,960 But I don't change the values. 22 00:01:40,100 --> 00:01:44,140 So here in the output so we have all the order numbers printed. 23 00:01:44,180 --> 00:01:49,100 So we have simply skipped out to 4 6 and 8 and also 10. 24 00:01:49,130 --> 00:01:54,290 So all the numbers except the even numbers has been printed in the output console. 25 00:01:54,320 --> 00:01:55,980 So this is how we make use of that. 26 00:01:56,010 --> 00:01:59,620 And they use statements and also the breeks statements in case of Cartland. 27 00:01:59,690 --> 00:02:02,260 It is totally the same as that of Java. 28 00:02:02,630 --> 00:02:05,550 Now suppose I have two nested for loops. 29 00:02:05,660 --> 00:02:08,020 Let me show you another example. 30 00:02:08,120 --> 00:02:11,870 Such as. 31 00:02:11,880 --> 00:02:16,040 So here I have two nested for loops one loop within another. 32 00:02:16,170 --> 00:02:19,360 Now here let me reduce the range to 1 to 3. 33 00:02:19,560 --> 00:02:21,840 And again one two three. 34 00:02:21,960 --> 00:02:25,890 And now let us use the concept of in the position to print a value of. 35 00:02:25,920 --> 00:02:29,260 Let's say I spays dollar G. 36 00:02:29,550 --> 00:02:32,610 And now let us trend the chord and see the output. 37 00:02:32,790 --> 00:02:33,860 So in output. 38 00:02:33,850 --> 00:02:36,650 So we have 1 1 1 2 1 3. 39 00:02:36,750 --> 00:02:41,210 So on 3:3 right like we saw in the previous video. 40 00:02:41,220 --> 00:02:44,450 Now suppose if I use the if condition here. 41 00:02:44,490 --> 00:02:54,320 Let's see if condition let's say eight is equal to equal to and G is equal to equal to two then simply 42 00:02:54,440 --> 00:02:55,250 continue. 43 00:02:55,430 --> 00:02:58,290 And now there discard this print statement from here. 44 00:02:58,370 --> 00:03:02,260 Control X and pasted right after the if condition. 45 00:03:02,330 --> 00:03:02,840 Right. 46 00:03:03,020 --> 00:03:08,810 And now let us read the code and see what impact it holds in the output console. 47 00:03:08,810 --> 00:03:13,040 So in the output we have 1 1 1 2 1 3 2 1. 48 00:03:13,100 --> 00:03:15,930 And soon after that I have two three. 49 00:03:16,010 --> 00:03:19,600 We have simply skipped due to the output console. 50 00:03:19,610 --> 00:03:22,920 Now suppose I want to skip this two or three as well. 51 00:03:23,060 --> 00:03:28,430 So far that what I really do is I would simply use the leave word for loop. 52 00:03:28,430 --> 00:03:33,860 Now I would simply define a name for my outer for loop which is actually used or. 53 00:03:34,030 --> 00:03:36,790 So outer space. 54 00:03:36,800 --> 00:03:40,460 Now this for loop is actually known as the outer. 55 00:03:40,760 --> 00:03:43,880 We have simply given the name for our outer for loop. 56 00:03:43,940 --> 00:03:45,160 So here are they we do. 57 00:03:45,180 --> 00:03:48,070 I would simply use our direct outbuild. 58 00:03:48,260 --> 00:03:50,450 So continue the outer loop. 59 00:03:50,510 --> 00:03:56,840 Right now Vivier are doing this just because this continues statement is Bideford applicable for the 60 00:03:56,930 --> 00:03:59,710 nearest for loop within which it is present. 61 00:03:59,900 --> 00:04:05,360 Now in order to continue looping for the output for a loop we have to tell this continuous statement 62 00:04:05,480 --> 00:04:09,110 that you have to use your property for the output for loop. 63 00:04:09,170 --> 00:04:12,340 So that is why we are using the outer label here. 64 00:04:12,450 --> 00:04:13,030 Right. 65 00:04:13,340 --> 00:04:16,580 And now let us read the code and let's see what happens. 66 00:04:17,390 --> 00:04:22,520 So in the output we have to win and after two when we have straight away to you. 67 00:04:22,820 --> 00:04:27,680 So we have simply applied the continuous statement for the outer for loop. 68 00:04:27,680 --> 00:04:31,280 Now remember this outer keyword is actually user defined. 69 00:04:31,280 --> 00:04:32,050 You can name it. 70 00:04:32,060 --> 00:04:32,870 Let's see. 71 00:04:33,140 --> 00:04:40,660 Let's see my loop and also use my loop here and now it will work perfectly OK. 72 00:04:41,620 --> 00:04:44,210 So this was all about the current day new statements. 73 00:04:44,230 --> 00:04:45,330 In case of Cartland.