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

blockly > Variables > nameUsedWithAnyType

Variables.nameUsedWithAnyType() function

Check whether there exists a variable with the given name of any type.


export declare function nameUsedWithAnyType(name: string, workspace: Workspace): VariableModel | null;


Parameter Type Description
name string The name to search for.
workspace Workspace The workspace to search for the variable.


VariableModel | null

The variable with the given name, or null if none was found.