Skip to content

Loops

Repetition structures like count loops, while loops, and iterative patterns.

Controls WhileUntil

Block

truerepeatwhiledo

Description

While a value is true, then do some statements.

Params

  • MODE: Dropdown
    • while
    • until
  • BOOL: Boolean
  • DO: Blocks

Controls Flow Statements

Block

break outof loop

Description

Break out of the containing loop.

Params

  • FLOW: Dropdown
    • break out
    • continue with next iteration

End

Block

End Program

Description

N/A

Controls Repeat Ext

Block

3repeattimesdo

Description

Do some statements several times.

Params

  • TIMES: Number
  • DO: Blocks

Controls For

Block

1101count withifromtobydo

Description

Have the variable 'i' take on the values from the start number to the end number, counting by the specified interval, and do the specified blocks.

Params

  • VAR: Variable
  • FROM: Number
  • TO: Number
  • BY: Number
  • DO: Blocks

Controls ForEach

Block

for each itemiin listdo

Description

For each item in a list, set the variable 'i' to the item, and then do some statements.

Params

  • VAR: Variable
  • LIST: Array
  • DO: Blocks