Function: isNameUsed()
function isNameUsed(
name,
workspace,
opt_exclude?
): boolean;
Defined in: packages/blockly/core/procedures.ts:172
Return if the given name is already a procedure name.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The questionable name. |
workspace | Workspace | The workspace to scan for collisions. |
opt_exclude? | Block | Optional block to exclude from comparisons (one doesn't want to collide with oneself). |
Returns
boolean
True if the name is used, otherwise return false.