1 00:00:00,180 --> 00:00:06,720 All right, now for the decision making, we have actually three types of formats, if five or else 2 00:00:06,720 --> 00:00:09,320 five, then we have the F F fight. 3 00:00:09,360 --> 00:00:13,130 OK, why here means the end of statement. 4 00:00:13,170 --> 00:00:15,160 OK, so let's have a look and see. 5 00:00:15,240 --> 00:00:26,480 That's actually so you can see a equal can be equal 20 and if A equal equal B and as you can see there 6 00:00:26,520 --> 00:00:33,210 are signs that assign equal is equal to be, if not as you can see not equal is equal to. 7 00:00:33,510 --> 00:00:34,700 Now this is for the string. 8 00:00:34,750 --> 00:00:42,540 Now if it is an integer number or if it is number, we will use the dash e q dash less than the actual 9 00:00:42,540 --> 00:00:42,810 t. 10 00:00:42,810 --> 00:00:50,970 I mean that's e less than or equal gt greater than dash g e greater than or equal and so on. 11 00:00:51,360 --> 00:00:53,670 OK or dash equal or does not equal. 12 00:00:53,830 --> 00:00:56,340 But anyway for now work with me on this. 13 00:00:56,550 --> 00:01:01,680 You can see that if it equal equal B then it will show us like this. 14 00:01:01,710 --> 00:01:04,080 So it is time to run this. 15 00:01:04,830 --> 00:01:11,420 So all you can see is not equal to B but you will get this unexpected operator. 16 00:01:11,580 --> 00:01:13,920 Now actually there are no syntactical here. 17 00:01:14,160 --> 00:01:17,760 But the thing is because I am using and it is executed S. 18 00:01:17,810 --> 00:01:18,950 S actually. 19 00:01:19,350 --> 00:01:27,050 So if I take a special shielded asset like this, you can see no errors at all. 20 00:01:27,090 --> 00:01:29,040 It is not equal to B and that's it. 21 00:01:29,080 --> 00:01:36,450 OK, now for the second format, we will use this, as you can see, a kwartin be equal 20 if equal 22 00:01:36,450 --> 00:01:44,880 equal B then equal is equal to be else as you can see is equal, is not equal to B and you can see here 23 00:01:45,000 --> 00:01:50,460 we would define fine, which means that the end of the statement as the previous, but this time we 24 00:01:50,460 --> 00:01:51,690 add it is all right. 25 00:01:52,660 --> 00:01:54,250 So nothing new here. 26 00:01:54,490 --> 00:01:59,080 OK, now finally we have the ayliffe and is then fine. 27 00:01:59,150 --> 00:02:02,730 OK, so as you can see here, equal 10, be equal 20. 28 00:02:02,920 --> 00:02:10,420 So it is equal, equal B, then equal is equal to be Iliffe as you can see, ayliffe and open it is 29 00:02:10,510 --> 00:02:13,180 like the F with Elles plus if. 30 00:02:13,180 --> 00:02:24,220 OK, so if it is not greater than as you can see that's greater than B if it is less than B as you can 31 00:02:24,220 --> 00:02:24,400 see. 32 00:02:24,430 --> 00:02:26,360 So it is this that else. 33 00:02:26,380 --> 00:02:27,790 So none of that condition. 34 00:02:28,120 --> 00:02:32,250 OK, so let's run this actually and see what will give us. 35 00:02:32,590 --> 00:02:32,950 Yeah. 36 00:02:32,960 --> 00:02:33,910 Is this then. 37 00:02:33,910 --> 00:02:42,730 B but anyway ignore this because this is a message that Besch So if I bashan no problem at all. 38 00:02:42,880 --> 00:02:43,390 All right. 39 00:02:43,540 --> 00:02:50,350 Now finally we have the case statement and you can see that the court is upheld and the case brought 40 00:02:50,350 --> 00:02:54,610 in either this one or this one or this one. 41 00:02:54,850 --> 00:02:56,670 But you can see the syntax is like this. 42 00:02:56,680 --> 00:03:04,150 So case then in double quotation, I put that variable that we saw here been in and as you can see, 43 00:03:04,150 --> 00:03:05,020 double quotation. 44 00:03:06,230 --> 00:03:13,520 Double quotation and another double quotation, and we have the half brackets like this, then if it 45 00:03:13,520 --> 00:03:20,900 is right for this comment and you can see we have the we have to swim Cologne's, which means the end 46 00:03:20,900 --> 00:03:22,050 of this case. 47 00:03:22,070 --> 00:03:25,250 OK, so banana again, double quotation. 48 00:03:25,670 --> 00:03:30,440 This is the choice we have and we close it with this bracket. 49 00:03:30,800 --> 00:03:36,510 And I like banana, for example, and we have to see MacKinnon's, which means the choice has been ended. 50 00:03:36,530 --> 00:03:37,550 No more comments. 51 00:03:37,580 --> 00:03:44,570 Now, finally, we have the mango and eco womb, for example, and we have to semicolons and which means 52 00:03:44,570 --> 00:03:46,530 that the case ended here. 53 00:03:46,670 --> 00:03:47,850 OK, so no more comments. 54 00:03:48,050 --> 00:03:51,430 And finally, we have the case, but with a reverse way. 55 00:03:51,500 --> 00:03:56,660 OK, so ECAC we as you can see, case ECAC. 56 00:03:56,660 --> 00:03:57,630 All right, now. 57 00:03:57,920 --> 00:03:59,930 Now let's try this and see what will give us. 58 00:04:00,940 --> 00:04:08,290 So if I run the shell, apple pie is quite tasty because the choice was or the fruit was OK, actually 59 00:04:08,290 --> 00:04:10,570 there are other way to do that. 60 00:04:10,570 --> 00:04:16,900 Instead of putting it as hardcoded, you can just put and add that there are signs like this. 61 00:04:17,440 --> 00:04:23,980 And here inside it, if I type Shell Apple, you can see Apple is is yummy. 62 00:04:24,460 --> 00:04:25,990 Apple pie is quite tasty. 63 00:04:26,200 --> 00:04:29,100 And if I buy what Mango will. 64 00:04:29,230 --> 00:04:34,250 And again, if I bought something like this, nothing will be OK. 65 00:04:34,570 --> 00:04:35,020 All right. 66 00:04:35,140 --> 00:04:36,040 Thanks for watching. 67 00:04:36,070 --> 00:04:37,220 And we'll see you in the next picture.