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.
Usage
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] . . .
Workaround
- 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] end[[ja:() のすべてを削除する (ブロック)]