Skip to main content

Home > blockly > Block > getInputTargetBlock

Block.getInputTargetBlock() method

Fetches the block attached to the named input.

Signature:

getInputTargetBlock(name: string): Block | null;

Parameters

ParameterTypeDescription
namestringThe name of the input.

Returns:

Block | null

The attached value block, or null if the input is either disconnected or if the input does not exist.