delete all of ()

From PenguinMod Wiki
Delete all of ()
Jump to navigation Jump to search
delete all of ()
delete all of [list v]
Caption
Block Type Stack Block
Category / Extension Lists
Status Who tf uses status

The delete all of () block is a stack block that deletes all items in the selected list. It originates from Scratch.

Workaround

This block can be worked around by using the fact that all used to be an option in the delete () of () block until Scratch 3.0, or by deleting items until the list is empty:

delete [all] of [list v] //this can be obtained by uploading a project from 1.x or 2.0, or by copy and pasting all into the dropdown
Or:
delete ([all]::operators) of [list v]
Or:

repeat until <is [list v] empty?::list>
delete (1) of [list v]
end