ClassesBlockblockly.block.getpreviousblockOn this pageHome > blockly > Block > getPreviousBlock Block.getPreviousBlock() method Returns the block connected to the previous connection. Signature: getPreviousBlock(): Block | null; Returns: Block | null The previous statement block or null.