Skip to main content

Home > blockly > Block > setOutput

Block.setOutput() method

Set whether this block returns a value.

Signature:

setOutput(newBoolean: boolean, opt_check?: string | string[] | null): void;

Parameters

ParameterTypeDescription
newBooleanbooleanTrue if there is an output.
opt_checkstring | string[] | null(Optional) Returned type or list of returned types. Null or undefined if any type could be returned (e.g. variable get).

Returns:

void