[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.33,0:00:06.04,Default,,0000,0000,0000,,An if-else statement is a decision between\Ntwo things. For example, IF Scrat the squirrel Dialogue: 0,0:00:06.04,0:00:11.88,Default,,0000,0000,0000,,finds the acorn, then he's happy. ELSE he's\Nsad, and keeps searching. Now let's see how Dialogue: 0,0:00:11.88,0:00:17.16,Default,,0000,0000,0000,,we can use an if-else statement with our buddy\NScrat. This block looks the same as the "if" Dialogue: 0,0:00:17.16,0:00:22.22,Default,,0000,0000,0000,,block, but there's an extra part on the bottom\Nthat says "else". If I put a "move forward" Dialogue: 0,0:00:22.22,0:00:27.36,Default,,0000,0000,0000,,block where it says "do" and a "turn left"\Nblock where it says "else", that means Scrat Dialogue: 0,0:00:27.36,0:00:31.71,Default,,0000,0000,0000,,the squirrel will move forward if there's\Na path ahead. If there's not a path ahead, Dialogue: 0,0:00:31.71,0:00:37.49,Default,,0000,0000,0000,,Scrat will turn left. It's making a decision\Nand doing one of the two actions based on Dialogue: 0,0:00:37.49,0:00:42.36,Default,,0000,0000,0000,,that decision. And just like "if" blocks,\Nyou can put "if-else" blocks inside "repeat" Dialogue: 0,0:00:42.36,0:00:46.16,Default,,0000,0000,0000,,blocks. Now let's help Scrat the squirrel\Nget that acorn!