Revision as of 06:11, 12 September 2019 by Apple502j (talk | contribs) (Add ja interwiki) (canned edit summary)

Delete All of ()
delete all of [ v]
Category List
Type Stack

The Delete All of () block is a List Block and a Stack Block. It deletes all the items in the specified list. Before Scratch 3.0, it was included in the Delete () of () block.


Because it deletes all the items in a list, it can be used in a wide variety of situations. The dropdown selects the list.

When a pattern is repeated correctly:

. . .
if <(played notes::list) = (correct notes::list)> then
delete all of [played notes v]
generate new sequence::custom
. . .

When all enemies are defeated

. . .
if <(enemies) = (0)> then
delete all of [enemies list v]
. . .


Main article: List of Block Workarounds

This block can be replicated with the following code:

repeat until <(length of [list v]) = (0)>
delete (1) of [list v]
[[ja:() のすべてを削除する (ブロック)]