A list component holds elements in a specific order. The type of element that the list can store is defined by the Element Type. List is dynamic sized.
Execute | Executes the component. |
Add Value / Vector / Object | Add an element to the index of the List. |
Operation | Execute an operation of the List through a link. Remove First / Remove Last / Remove All / Shuffle / Reverse. |
On Start | Executes the component at the start of the Hype. | |
Enabled | Determines if the List can be executed. | |
Allow Duplicates | Determines if the list allows duplicate values | |
List Type | Switch the List type between one- and two-dimensional lists. 2D List is essentially a list of lists. | |
Element Type | Stored element type. Can be values, vectors or objects. | |
Add New Elements To | Position to which new elements are added to. Beginning / End / Index. | |
Max Size | Maximum amount of elements for the List. | |
Index | Starting index for the List. | |
Run Action | Runs certain action when executed through this link | |
Get Value at Index | Input | Input an index value to fetch an entry on the List |
Output | Outputs whatever the List is storing in the Input Index | |
Get Last Index | Input | Executes Get Last Index output |
Output | Outputs the index value of the last item on the list (list length) | |
For Each Value | Input | Execute For Each Value output |
Output | Executes the link as many times as there are values in the list. | |
Contains | Input | Input an index value to check if the list contains that index |
Output | Outputs True or False (1 or 0) based on if the List contains the input index |
Here's a link to the hype that shows how to implement and use the List node: