Home > blockly > Block > setNextStatement
Block.setNextStatement() method
Set whether another block can chain onto the bottom of this block.
Signature:
setNextStatement(newBoolean: boolean, opt_check?: string | string[] | null): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| newBoolean | boolean | True if there can be a next statement. |
| opt_check | string | string[] | null | (Optional) Statement type or list of statement types. Null/undefined if any type could be connected. |
Returns:
void