Control
Control blocks manage execution flow: waiting, loops, branching, and stopping scripts.
Wait blocks
Wait
Pauses the current script for a specified time.
Wait until
Pauses the current script until a condition becomes true.
Loop blocks
Repeat
Runs nested blocks a fixed number of times.
Repeat until
Runs nested blocks repeatedly until a condition becomes true.
Forever
Runs nested blocks continuously until the program or script is stopped.
Branch blocks
If
Runs nested blocks only when the condition is true.
If / Else
Runs one branch when the condition is true, otherwise runs the alternative branch.
Do this and this
Runs two block stacks in sequence as part of one control flow operation.
Stop blocks
Stop
Stops script execution (scope depends on selected stop option).
- Stop options:
all,this stack,and exit program
Stop other stacks
Stops all other running stacks while allowing the current stack to continue.
Hub/control utility blocks
Set connect
Controls hub connection state from control flow logic.
- Action options:
connect,disconnect
Is connected
Returns whether the hub is currently connected.
- Type: boolean reporter block
BuWizz 2 set power mode
Sets BuWizz 2 hub power mode.
- Mode options:
Slow,Normal,Fast,Ludicrous
BuWizz 2 get power mode
Returns the currently active BuWizz 2 power mode.
- Output format options:
text,index
MouldKing set control channel
Sets active control channel for supported MouldKing hub/controller.
- Channel options:
A,B,C
MouldKing get control channel
Returns current active control channel for supported MouldKing hub/controller.
- Output format options:
text,index