Skip to main content

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

ParameterTypeDescription
newBooleanbooleanTrue if there can be a next statement.
opt_checkstring | string[] | null(Optional) Statement type or list of statement types. Null/undefined if any type could be connected.

Returns:

void