blockly > FieldVariable > getText

FieldVariable.getText() method

Get the text from this field, which is the selected variable's name.

Signature:

getText(): string;

Returns:

string

The selected variable's name, or the empty string if no variable is selected.