Loops

Lesson

Loops are a type of block that causes other code to run multiple times in succession. Loops are useful in reducing redundancy and complexity, especially for repetitive tasks.

SNAP Loops

  • alt text runs the body of the loop the specified number of times

  • alt text runs the body of the loop nonstop until the script is ended. It can be stopped either by clicking the stop sign or by any version of alt text

  • alt text runs the body of the loop until the specified condition becomes true

Last updated

Was this helpful?