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

blockly > Procedures > getDefinition

Procedures.getDefinition() function

Find the definition block for the named procedure.


export declare function getDefinition(name: string, workspace: Workspace): Block | null;


Parameter Type Description
name string Name of procedure.
workspace Workspace The workspace to search.


Block | null

The procedure definition block, or null not found.