GetSlot

This function looks for a slot on the global workspace with a given name and returns that slot, if it exists.

Description

Return the slot with a given name.

Type

SLOT

Arguments

Type

Meaning

1

STRING

the name of the slot for which to search.

Evaluation

The function returns the slot with the given name, if it exists.

Comments

If no slot with the given name exists on the global workspace, then the run is aborted with an error.

 
GetSlot("Heron Reservoir.Inflow")
GetSlot("Abiquiu Reservoir^RioGrande.Inflow")
 
$"Heron Reservoir.Inflow"
$"Abiquiu Reservoir^RioGrande.Inflow"