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

blockly > Block > getFieldValue

Block.getFieldValue() method

Returns the language-neutral value of the given field.

Signature:

getFieldValue(name: string): any;

Parameters

Parameter Type Description
name string The name of the field.

Returns:

any

Value of the field or null if field does not exist.