1 00:00:00,840 --> 00:00:01,800 Wow! 2 00:00:01,800 --> 00:00:03,020 Another three puzzles solved! 3 00:00:03,020 --> 00:00:05,900 And we've caught...a salmon. 4 00:00:05,900 --> 00:00:10,580 Not quite as exciting as piles of gold, but we'll take what we can get. 5 00:00:10,580 --> 00:00:14,429 And I have a feeling that nautilus shell will come in handy later. 6 00:00:14,429 --> 00:00:17,450 I wonder what lurks in these ruins. 7 00:00:17,450 --> 00:00:18,840 Perhaps another hint! 8 00:00:18,840 --> 00:00:21,510 Let’s take a look inside. 9 00:00:21,510 --> 00:00:24,760 My name is Netty and welcome to my ruins. 10 00:00:24,760 --> 00:00:28,500 We make decisions all the time based on conditions. 11 00:00:28,500 --> 00:00:31,540 If it looks like rain, then we’ll grab an umbrella. 12 00:00:31,540 --> 00:00:34,160 If we’re hungry, then we'll eat a snack. 13 00:00:34,160 --> 00:00:38,440 If we see a creeper, then we run in the opposite direction. 14 00:00:38,449 --> 00:00:41,000 Computers make these types of decisions too. 15 00:00:41,010 --> 00:00:44,460 They can actually respond to conditions using code. 16 00:00:44,460 --> 00:00:50,700 To program a response like this using your code commands, select an if path block. 17 00:00:50,700 --> 00:00:53,319 Select the dropdown to create the command. 18 00:00:53,319 --> 00:00:58,640 For example, if you write the command "if path to the right" and place turn right inside 19 00:00:58,640 --> 00:01:03,560 the conditional, then when Steve reaches an open path to the right 20 00:01:03,560 --> 00:01:06,100 he will always turn right. 21 00:01:06,100 --> 00:01:09,780 If there is no opening to the right, he will not turn right. 22 00:01:09,780 --> 00:01:14,460 These conditional if commands are helpful when you run code in unpredictable situations 23 00:01:14,460 --> 00:01:17,860 such as mysterious ruins in underwater caves. 24 00:01:17,860 --> 00:01:21,200 Try using the if blocks and take your code for a spin. 25 00:01:21,200 --> 00:01:22,200 Wow! 26 00:01:22,200 --> 00:01:23,930 Netty’s ruins were awesome. 27 00:01:23,930 --> 00:01:26,619 I really gotta move out of my parents' house. 28 00:01:26,619 --> 00:01:27,689 So what do you think? 29 00:01:27,689 --> 00:01:30,729 Are the conditions right for us to complete the final puzzles? 30 00:01:30,729 --> 00:01:32,179 Let’s give it a go.