Our app is now available on Google Play. Get it on Google Play

What is if-then-else block in scratch programming?

  1. It runs forever
  2. It has no use in scratch
  3. It is the looping statement in scratch
  4. It check certain condition before executing code inside it

Answer: It check certain condition before executing code inside it


Long Answer:

IF-THEN-ELSE is used to check certain condition. If the condition is true the code in the block is executed but if the condition is false the code in else block is executed.

It simply means that whether the condition is true or false, certain code will be executed.