Function: nameUsedWithAnyType()
function nameUsedWithAnyType(name, workspace):
| IVariableModel<IVariableState>
| null;
Defined in: packages/blockly/core/variables.ts:543
Check whether there exists a variable with the given name of any type.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The name to search for. |
workspace | Workspace | The workspace to search for the variable. |
Returns
| IVariableModel<IVariableState>
| null
The variable with the given name, or null if none was found.