1 00:00:00,180 --> 00:00:06,960 OK, guys, here we had the speech and we will talk about the if function, the first thing we will 2 00:00:06,960 --> 00:00:10,860 do right here is to get the FS1 the same as I did here. 3 00:00:11,220 --> 00:00:13,770 And then here we will type the script. 4 00:00:14,590 --> 00:00:21,000 We will make sure f and then we pull up in a print and inside the bracket we will type the condition 5 00:00:21,570 --> 00:00:22,100 new. 6 00:00:22,170 --> 00:00:24,660 We will make for the date date. 7 00:00:26,400 --> 00:00:28,230 Just get ours. 8 00:00:31,080 --> 00:00:32,960 So here is the condition. 9 00:00:33,210 --> 00:00:38,300 Anything your dad did get ours is smaller than 18. 10 00:00:39,180 --> 00:00:45,590 So I want to change the all of this part to be having good days. 11 00:00:46,290 --> 00:01:00,380 We can make here valuable, already able to document that requires Lechter for the actual work. 12 00:01:00,840 --> 00:01:05,270 And here we can make DOT either esteemable to be happy. 13 00:01:05,410 --> 00:01:14,040 The content of the day, we can just go and reload. 14 00:01:14,880 --> 00:01:20,670 So here we got the goodday because it's smaller than 18. 15 00:01:21,390 --> 00:01:26,040 OK, and for this part, we can talk about the Elst function. 16 00:01:26,250 --> 00:01:32,880 Well, if they want to make on another condition here, I want a function, but else I want something 17 00:01:32,880 --> 00:01:33,810 different to be happened. 18 00:01:34,290 --> 00:01:36,630 Let's try to make it OK. 19 00:01:36,990 --> 00:01:46,770 We can make this be larger and here we can type out this evening with that here nothing. 20 00:01:47,490 --> 00:01:48,420 And then we can. 21 00:01:48,420 --> 00:01:57,030 Migg Aigner A.M. to be having a good day, we can go here. 22 00:01:57,540 --> 00:02:04,190 So here we got the gate dange because it's less than 18. 23 00:02:04,560 --> 00:02:05,880 It's seven right here. 24 00:02:06,840 --> 00:02:16,850 OK, after this part we can talk about the L f let's just first comment, all of that and. 25 00:02:20,470 --> 00:02:24,690 Comment because we believe the different method for the vehicles. 26 00:02:26,050 --> 00:02:32,200 OK, and here the first thing we will do is to set up a function 27 00:02:34,930 --> 00:02:40,870 and then we can make my function or we can make it in the form of event lefthander. 28 00:02:41,170 --> 00:02:55,330 We can get this one right here or we can make document dot Guayama selector for one shot at event listner 29 00:02:56,590 --> 00:02:58,000 for the click function. 30 00:02:58,390 --> 00:03:03,670 And here we can either function with empty parameters and open the project. 31 00:03:04,270 --> 00:03:12,710 And the first thing we will do here is be very bold of growing things that we will leave it empty, 32 00:03:12,730 --> 00:03:22,420 just close the line and then here we will give a very bold for the time variable for the time to be 33 00:03:22,420 --> 00:03:30,060 equal to date for and get our get ours. 34 00:03:31,480 --> 00:03:32,610 OK, that's good. 35 00:03:32,860 --> 00:03:34,520 And then we will. 36 00:03:34,540 --> 00:03:35,800 First things first. 37 00:03:36,040 --> 00:03:48,070 We will use the if function if the first condition to be for time is less than 10 for the less than 38 00:03:48,070 --> 00:03:48,540 10. 39 00:03:48,790 --> 00:03:50,400 I want you to print it. 40 00:03:50,950 --> 00:03:51,330 Great. 41 00:03:51,390 --> 00:03:57,990 And I want the variable of to be equal to good margin. 42 00:03:58,870 --> 00:03:59,830 This is the purpose. 43 00:03:59,830 --> 00:04:01,100 Other variables. 44 00:04:01,630 --> 00:04:08,620 It may contain different content and about the function. 45 00:04:09,310 --> 00:04:15,100 So it would be having different content and it will depend on the function. 46 00:04:15,370 --> 00:04:17,590 And then here we can make Alice. 47 00:04:19,390 --> 00:04:27,910 And folks else we can make great teams be able to get into evening. 48 00:04:28,810 --> 00:04:39,280 OK, we got here and out of this one, we can just make a document or we can just bring in our team 49 00:04:39,280 --> 00:04:43,140 out to be equal to the great teams. 50 00:04:43,420 --> 00:04:49,480 We don't need to type the double quotations because it's a variable. 51 00:04:49,930 --> 00:04:52,680 We can just go to the Web page right now. 52 00:04:53,680 --> 00:04:55,300 What's the problem here? 53 00:04:56,020 --> 00:04:57,700 OK, OK. 54 00:04:58,240 --> 00:05:03,330 And the one we can make this one to be we didn't close the line here. 55 00:05:04,600 --> 00:05:05,820 So what's the problem? 56 00:05:06,250 --> 00:05:09,580 We get something wrong with this parts and we need to check it. 57 00:05:11,840 --> 00:05:13,470 Yes, yeah. 58 00:05:13,510 --> 00:05:20,500 The click function we can type here like me when we click here. 59 00:05:20,680 --> 00:05:21,460 So here we got. 60 00:05:21,460 --> 00:05:22,210 Good morning. 61 00:05:22,340 --> 00:05:23,190 We will make it. 62 00:05:23,200 --> 00:05:24,070 Good morning. 63 00:05:25,000 --> 00:05:26,250 OK, that's good. 64 00:05:26,660 --> 00:05:28,390 Here we got the good morning. 65 00:05:28,510 --> 00:05:37,120 But let's say that I want to add here, a third condition will be different from the else. 66 00:05:37,480 --> 00:05:39,850 There's a something which is called LTH. 67 00:05:39,850 --> 00:05:47,410 If we can just go here and add value add and then we can add another condition. 68 00:05:47,920 --> 00:05:58,500 This time will be less than 20 to Pickerington equal to good day. 69 00:05:59,770 --> 00:06:04,320 We can just go to the speech and only load like me. 70 00:06:04,570 --> 00:06:09,400 So here we've got good morning because it's already less than ten. 71 00:06:10,220 --> 00:06:11,800 OK, that's good. 72 00:06:12,040 --> 00:06:15,700 Now we know about the if and the if.