blockly > 変数 > nameUsedWithAnyType
Variables.nameUsedWithAnyType() 関数
指定した型の名前の変数が存在するかどうかを確認します。
署名:
export declare function nameUsedWithAnyType(name: string, workspace: Workspace): VariableModel | null;
パラメータ
パラメータ | 種類 | 説明 |
---|---|---|
name | string | 検索する名前。 |
ワークスペース | Google Workspace | 変数を検索するワークスペース。 |
戻り値:
VariableModel | null
指定された名前の変数。見つからなかった場合は null。