insert (thing) at (1) of (list) — Scratch Block Guide
Inserts a new item at a specific index and shifts existing items down without overwriting them.
What this block does
Inserts a new item at a specific index and shifts existing items down without overwriting them.
Insert a new high score into the right rank position on a leaderboard.
- Category: Variables & Lists
- Key tip: Increases list length by 1 (unlike "replace", which keeps length the same).
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Insert Top Score at 1 of leaderboard
Try it: Places the new item at #1 and pushes the previous #1 to #2.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "insert (thing) at (1) of (list)" in Scratch?
Insert a new high score into the right rank position on a leaderboard. Increases list length by 1 (unlike "replace", which keeps length the same).
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.