Skip to content

Loops โ€‹

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

Controls WhileUntil โ€‹

Block โ€‹

true โ–พrepeatwhile โ–พdo

Description โ€‹

While a value is true, then do some statements.

Params โ€‹

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

Controls Flow Statements โ€‹

Block โ€‹

breakย out โ–พofย 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ย withi โ–พfromtobydo

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ย itemi โ–พinย 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