List Element: Difference between revisions
Nikitaivanov (talk | contribs) (Created page with "Gets a value stored in a list, with index starting from 0 (max 1,048,575). The output can also wired to Set Reference to store a value in a list. It's what you call an "Array" in other programming language. /uploads/List Element.png Input: * Variable: The variable for the list. It only accepts the output of a Get Variable or another List Element, any output from a different block and the script won't plug. * Index: Every value in a list is assigned...") |
(Removed the content that was moved to the List page) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Gets a value stored in a list, with index starting from 0 (max 1,048,575). The output can also wired to [[Set Reference]] to store a value in a list | {{Block | ||
|image=List Element number.png | |||
|type=s | |||
|folder=variables | |||
|input1={{Port|e|Before}} | |||
|input2={{Port|?|Variable}} | |||
|input3={{Port|n|Index}} | |||
|output1={{Port|?|Element}} | |||
|output2={{Port|e|After}} | |||
}} | |||
Gets a value stored in a [[list]], with index starting from 0 (max 1,048,575). | |||
The output can also wired to [[Set Reference]] to store a value in a list. | |||
Every value in a list is assigned an index (think of it as an ID number). | |||
We plug an index to get value from the list with the assigned index. | |||
For more information see the [[List]] page. | |||
[[ | |||
== Related == | == Related == | ||
* [[List]] | |||
* [[Set Reference]] | * [[Set Reference]] | ||
[[Category:Blocks]] | [[Category:Blocks]] |
Latest revision as of 21:19, 4 July 2024
List Element
Type | Script block |
Collider | None |
Folder | Variables |
Ports | |
---|---|
Inputs | Before Variable Index |
Outputs | Element After |
Gets a value stored in a list, with index starting from 0 (max 1,048,575). The output can also wired to Set Reference to store a value in a list.
Every value in a list is assigned an index (think of it as an ID number). We plug an index to get value from the list with the assigned index.
For more information see the List page.