0:00:00.900,0:00:03.000 People make decisions every day. 0:00:03.000,0:00:05.000 For example before you go outside 0:00:05.000,0:00:06.700 you kind of have an IF statement that says, 0:00:06.700,0:00:10.000 IF it's raining,[br]THEN I need to get my jacket. 0:00:10.000,0:00:16.000 And, computers are amazing once you decide those kinds of statements, 0:00:16.000,0:00:21.000 that they can reliably execute those things at unbelievable speed. 0:00:21.000,0:00:24.500 And so, a computer program really 0:00:24.550,0:00:27.700 is a little bit of math and some 0:00:27.700,0:00:31.410 IF statements, where the decision gets made. 0:00:31.410,0:00:34.000 So, in this puzzle the 0:00:34.000,0:00:37.500 IF block helps the zombie make a decision, 0:00:37.500,0:00:39.800 it checks something. 0:00:39.800,0:00:45.000 For example let's use the block that says, "if there's a path to the left," 0:00:45.000,0:00:48.000 and put a "turn left" command inside it. 0:00:48.000,0:00:51.500 So, we're telling the zombie to check its surroundings, 0:00:51.500,0:00:53.700 see if there's that path on the left, 0:00:53.700,0:00:56.000 and if so, make that turn. 0:00:56.000,0:01:01.309 And then we use the "move forward" block inside this "repeat" 0:01:01.309,0:01:04.000 to get it to keep moving forward as long as 0:01:04.000,0:01:06.000 it just wants to go straight. 0:01:06.000,0:01:12.000 Then when there's the turn, the IF block[br]will tell it to make this turn to the left. 0:01:12.000,0:01:13.900 And you can see, if we do that 0:01:13.900,0:01:18.400 if we're taking the turn to the left and otherwise moving forward, [br]we'll achieve our goal. 0:01:18.400,0:01:21.720 So it's an example of using an IF statement, 0:01:21.720,0:01:26.340 which is really a fundamental concept in computer programming. 0:01:26.340,0:01:32.000 One of the first things I learned was how to write a program to play tic-tac-toe. 0:01:32.000,0:01:34.900 So I had IF statements to say okay, 0:01:34.900,0:01:39.200 IF the other person is about to win go ahead and block that spot. 0:01:39.200,0:01:44.409 So have fun learning how to use IF statements. It's a key concept.