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