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

blockly > Workspace > getVariablesOfType

Workspace.getVariablesOfType() method

Find the variable with the specified type. If type is null, return list of variables with empty string type.

Signature:

getVariablesOfType(type: string | null): VariableModel[];

Parameters

Parameter Type Description
type string | null Type of the variables to find.

Returns:

VariableModel[]

The sought after variables of the passed in type. An empty array if none are found.