blockly > BlockSvg > setOutput

BlockSvg.setOutput() method

Set whether this block returns a value.

Signature:

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

Parameters

Parameter Type Description
newBoolean boolean True if there is an output.
opt_check string | 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