Skip to main content

Home > blockly > Block > getInputWithBlock

Block.getInputWithBlock() method

Return the input that connects to the specified block.

Signature:

getInputWithBlock(block: Block): Input | null;

Parameters

ParameterTypeDescription
blockBlockA block connected to an input on this block.

Returns:

Input | null

The input (if any) that connects to the specified block.