Stay organized with collections Save and categorize content based on your preferences.

blockly > Block > getInputTargetBlock

Block.getInputTargetBlock() method

Fetches the block attached to the named input.


getInputTargetBlock(name: string): Block | null;


Parameter Type Description
name string The name of the input.


Block | null

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