From Test-Scratch-Wiki

Translate: - English - 中文 
Delete () of ()
2.0 Delete () of ().png
Category List
Type Stack
Introduced in 1.3

The Delete () of () block is a List block and a Stack block. The block can delete the item inputted, the last item, or all items of the specified list depending on the option selected.

Example Uses

If there is a list of multiple items, and only one item needs to be removed, the Delete () of () block can do the job.

Some common uses for this block are:

  • Deleting redundant items
delete (1 v) of [stuff v]
add [water] to [stuff v]
  • Preparing a list when a project starts, so that new data can be added
when gf clicked
delete (all v) of [list v]

See Also