WEBVTT 00:00:00.840 --> 00:00:01.800 Wow! 00:00:01.800 --> 00:00:03.020 Another three puzzles solved! 00:00:03.020 --> 00:00:05.900 And we've caught...a salmon. 00:00:05.900 --> 00:00:10.580 Not quite as exciting as piles of gold, but we'll take what we can get. 00:00:10.580 --> 00:00:14.429 And I have a feeling that nautilus shell will come in handy later. 00:00:14.429 --> 00:00:17.450 I wonder what lurks in these ruins. 00:00:17.450 --> 00:00:18.840 Perhaps another hint! 00:00:18.840 --> 00:00:21.510 Let’s take a look inside. 00:00:21.510 --> 00:00:24.760 My name is Netty and welcome to my ruins. 00:00:24.760 --> 00:00:28.500 We make decisions all the time based on conditions. 00:00:28.500 --> 00:00:31.540 If it looks like rain, then we’ll grab an umbrella. 00:00:31.540 --> 00:00:34.160 If we’re hungry, then we'll eat a snack. 00:00:34.160 --> 00:00:38.440 If we see a creeper, then we run in the opposite direction. 00:00:38.449 --> 00:00:41.000 Computers make these types of decisions too. 00:00:41.010 --> 00:00:44.460 They can actually respond to conditions using code. 00:00:44.460 --> 00:00:50.700 To program a response like this using your code commands, select an if path block. 00:00:50.700 --> 00:00:53.319 Select the dropdown to create the command. 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 00:00:58.640 --> 00:01:03.560 the conditional, then when Steve reaches an open path to the right 00:01:03.560 --> 00:01:06.100 he will always turn right. 00:01:06.100 --> 00:01:09.780 If there is no opening to the right, he will not turn right. 00:01:09.780 --> 00:01:14.460 These conditional if commands are helpful when you run code in unpredictable situations 00:01:14.460 --> 00:01:17.860 such as mysterious ruins in underwater caves. 00:01:17.860 --> 00:01:21.200 Try using the if blocks and take your code for a spin. 00:01:21.200 --> 00:01:22.200 Wow! 00:01:22.200 --> 00:01:23.930 Netty’s ruins were awesome. 00:01:23.930 --> 00:01:26.619 I really gotta move out of my parents' house. 00:01:26.619 --> 00:01:27.689 So what do you think? 00:01:27.689 --> 00:01:30.729 Are the conditions right for us to complete the final puzzles? 00:01:30.729 --> 00:01:32.179 Let’s give it a go.