Lists: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Redirected page to Variables |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''Lists''' is a subcategory of the [[Variables]] category, originating from Scratch. Using the Data Category Tweaks addon originating from [[TurboWarp]], one could split this and the [[Variables (subcategory)|Variables]] subcategory apart. However, the Data Category Tweaks addon was removed in a [[PenguinMod]], and its separate sprite-only variables and separate list category settings are always on. |
|||
#Redirect [[Variables#Lists]] |
|||
Like the blocks in the Variables subcategory, the blocks in this subcategory only appear after the creation of a list. |
|||
==Blocks== |
|||
===Scratch Blocks=== |
|||
*[[() (Lists)|<sb>my list::list reporter</sb>]] |
|||
*[[add () to ()|<sb>add [thing] to [my list v]</sb>]] |
|||
*[[delete () of ()|<sb>delete (1) of [my list v]</sb>]] |
|||
*[[delete all of ()|<sb>delete all of [my list v]</sb>]] |
|||
*[[insert () at () of ()|<sb>insert [thing] at (1) of [my list v]</sb>]] |
|||
*[[replace item () of () with ()]] |
|||
*[[item () of ()]] |
|||
*[[item number of () in ()|item # of () in ()]] |
|||
*[[length of () (Lists)|length of ()]] |
|||
*[[() contains ()? (Lists)|() contains ()?]] |
|||
*[[show list ()]] |
|||
*[[hide list ()]] |
|||
===PenguinMod=== |
|||
* [[for each item () in ()]] |
|||
* [[For each item#%20()%20in%20()|for each item # () in ()]] |
|||
* [[Item () exists in ()]] |
|||
* [[Is () empty]] |
|||
* [[reverse ()]] |
|||
* [[set list () to array ()]] |
|||
* [[get list () as an array]] |
|||
[[Category:Vanilla Categories]] |
Latest revision as of 20:28, 23 July 2024
Lists is a subcategory of the Variables category, originating from Scratch. Using the Data Category Tweaks addon originating from TurboWarp, one could split this and the Variables subcategory apart. However, the Data Category Tweaks addon was removed in a PenguinMod, and its separate sprite-only variables and separate list category settings are always on.
Like the blocks in the Variables subcategory, the blocks in this subcategory only appear after the creation of a list.
Blocks
Scratch Blocks
my list::list reporter
add [thing] to [my list v]
delete (1) of [my list v]
delete all of [my list v]
insert [thing] at (1) of [my list v]
- replace item () of () with ()
- item () of ()
- item # of () in ()
- length of ()
- () contains ()?
- show list ()
- hide list ()