Skip to main content

Home > blockly > Block > allInputsFilled

Block.allInputsFilled() method

Recursively checks whether all statement and value inputs are filled with blocks. Also checks all following statement blocks in this stack.

Signature:

allInputsFilled(opt_shadowBlocksAreFilled?: boolean): boolean;

Parameters

ParameterTypeDescription
opt_shadowBlocksAreFilledboolean(Optional) An optional argument controlling whether shadow blocks are counted as filled. Defaults to true.

Returns:

boolean

True if all inputs are filled, false otherwise.