Explain the use of forever block in Scratch.
Answers
Answered by
17
The Forever If () block was a Control block and a C block. The block would continuously check its Boolean condition. If the condition is true, the code held inside the block would run, and then the script continues, but if the condition is false, nothing would happen until it becomes true again.
Answered by
2
The use of forever block in Scratch are as follows:-
- The Forever block is used to run a program again and again without any mouse click. It means you don't need to click again and again to repeat the action.
- The Block held inside this forever block will become a loop; it is bit similar to the Repeat () block and the Repeat Until () block.
- Forever blocks sometimes have a slight delay, so for optimum speed of execution, one frame block stacks should be used. A forever block is a C block or Control block, and a Cap Block.
- The forever loop is one which runs over again until the end of a program and it is also called an infinite loop.
Similar questions