1 00:00:00,329 --> 00:00:06,040 An if-else statement is a decision between two things. For example, IF Scrat the squirrel 2 00:00:06,040 --> 00:00:11,880 finds the acorn, then he's happy. ELSE he's sad, and keeps searching. Now let's see how 3 00:00:11,880 --> 00:00:17,160 we can use an if-else statement with our buddy Scrat. This block looks the same as the "if" 4 00:00:17,160 --> 00:00:22,220 block, but there's an extra part on the bottom that says "else". If I put a "move forward" 5 00:00:22,220 --> 00:00:27,359 block where it says "do" and a "turn left" block where it says "else", that means Scrat 6 00:00:27,359 --> 00:00:31,710 the squirrel will move forward if there's a path ahead. If there's not a path ahead, 7 00:00:31,710 --> 00:00:37,490 Scrat will turn left. It's making a decision and doing one of the two actions based on 8 00:00:37,490 --> 00:00:42,360 that decision. And just like "if" blocks, you can put "if-else" blocks inside "repeat" 9 00:00:42,360 --> 00:00:46,160 blocks. Now let's help Scrat the squirrel get that acorn!