-
Notifications
You must be signed in to change notification settings - Fork 0
cu_while en
mouse114514 edited this page Sep 12, 2026
·
1 revision

Repeatedly runs the inner statements while the condition is true.
⚠️ Warning: make sure the condition can eventually become false, otherwise you get an infinite loop that freezes the game.
| Slot | Type | Description |
|---|---|---|
| CONDITION | Boolean slot | loop condition |
| SUBSTACK | Statement slot | loop body |
| Connection | Type | Description |
|---|---|---|
| Top | Statement | connects after a previous statement |
| Bottom | Statement | continues to the next statement |
Emits while (<condition>) { ... }.
while [X < 10]
└── set X to X + 1
Block ID: cu_while