From Test-Scratch-Wiki
删除第 () 项 () | |
刪除第 (1 v) 項 \( [ v] \) | |
类别 | 清单类积木 |
形狀 | 条形积木 |
加入於 | 1.3 |
The Delete () of () 积木 is a 清单类积木 and a 条形积木. The block can delete the item inputted, the last item, or all items of the specified 清单 depending on the option selected.
用法示例
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
刪除第 (1 v) 項 \( [stuff v] \) 新增項目 [water] \( [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]
参见
Zho:变数类积木 | |
Zho:清单类积木 |
()
• 新增项目 () () • 删除第 () 项 () • 添加 () 为第 () 项 • 替换第 () 项于 () 成 () • 清单第 () 项项目 () • 清单 () 的项目数 • 清单 () 包含 () • 清单 () 显示 • 清单 () 隐藏更多积木… |