[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.43,0:00:05.90,Default,,0000,0000,0000,,Now we're going to learn about if statements.\NIf statements are a fundamental part of learning Dialogue: 0,0:00:05.90,0:00:12.76,Default,,0000,0000,0000,,to program. They help a computer make decisions.\NAll computers use if statements, including Dialogue: 0,0:00:12.76,0:00:19.31,Default,,0000,0000,0000,,my phone. For example, when I unlock my phone,\Nit runs some code that says if I enter the Dialogue: 0,0:00:19.31,0:00:26.21,Default,,0000,0000,0000,,password correctly, then unlock the phone.\NOtherwise, it shows an error message. Dialogue: 0,0:00:26.21,0:00:30.88,Default,,0000,0000,0000,,You can use if statements in your code to make\NSteve and Alice react to what they see in Dialogue: 0,0:00:30.88,0:00:38.27,Default,,0000,0000,0000,,the world. For example, if there is a rock\Nin front of them, they can turn left. Or turn Dialogue: 0,0:00:38.27,0:00:45.79,Default,,0000,0000,0000,,right if they run into a tree. In this case,\Nwe don't want to fall in the lava. Dialogue: 0,0:00:45.79,0:00:50.80,Default,,0000,0000,0000,,It's easy to plan for the lava. We can see it on\Nthe screen. But what about the lava that we Dialogue: 0,0:00:50.80,0:00:55.11,Default,,0000,0000,0000,,can't under the stone?\NAfter we mine the stone, we'll need to check Dialogue: 0,0:00:55.11,0:01:02.11,Default,,0000,0000,0000,,if there's any lava in that place before moving\Nforward. If there is lava there, we want to Dialogue: 0,0:01:02.11,0:01:08.65,Default,,0000,0000,0000,,place a stone in front of our character before\Nwe move forward. That way we can safely move on. Dialogue: 0,0:01:08.65,0:01:15.50,Default,,0000,0000,0000,,Time for more mining! And remember to\Nuse the if statement to watch your step.